mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2024-11-22 10:00:46 +00:00
check against slider modes explicitly
add enter/exit slider mode debug logging
This commit is contained in:
parent
cc99b14e89
commit
4a6ca2a353
@ -178,3 +178,17 @@ def get_full_slider_params(i, kind) -> Iterable:
|
||||
if kind.name == "basic":
|
||||
params.remove("LIMIT")
|
||||
return params
|
||||
|
||||
|
||||
def get_slider_modes() -> Iterable:
|
||||
return (
|
||||
"GAIN MODE",
|
||||
"BASS MODE",
|
||||
"MID MODE",
|
||||
"TREBLE MODE",
|
||||
"AUDIBILITY MODE",
|
||||
"COMP MODE",
|
||||
"GATE MODE",
|
||||
"DENOISER MODE",
|
||||
"LIMIT MODE",
|
||||
)
|
||||
|
@ -304,13 +304,15 @@ class NVDAVMWindow(psg.Window):
|
||||
self.logger.debug(f"values::{values}")
|
||||
if event in (psg.WIN_CLOSED, "Exit"):
|
||||
break
|
||||
elif not event.startswith("BUS") and event.endswith("MODE"):
|
||||
elif event in util.get_slider_modes():
|
||||
mode = event
|
||||
self.nvda.speak(f"{mode} enabled")
|
||||
self.logger.debug(f"entered slider mode {mode}")
|
||||
continue
|
||||
elif event == "ESCAPE":
|
||||
if mode:
|
||||
self.nvda.speak(f"{mode} disabled")
|
||||
self.logger.debug(f"exited from slider mode {mode}")
|
||||
mode = None
|
||||
continue
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user