mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2024-11-22 18:00:50 +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":
|
if kind.name == "basic":
|
||||||
params.remove("LIMIT")
|
params.remove("LIMIT")
|
||||||
return params
|
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}")
|
self.logger.debug(f"values::{values}")
|
||||||
if event in (psg.WIN_CLOSED, "Exit"):
|
if event in (psg.WIN_CLOSED, "Exit"):
|
||||||
break
|
break
|
||||||
elif not event.startswith("BUS") and event.endswith("MODE"):
|
elif event in util.get_slider_modes():
|
||||||
mode = event
|
mode = event
|
||||||
self.nvda.speak(f"{mode} enabled")
|
self.nvda.speak(f"{mode} enabled")
|
||||||
|
self.logger.debug(f"entered slider mode {mode}")
|
||||||
continue
|
continue
|
||||||
elif event == "ESCAPE":
|
elif event == "ESCAPE":
|
||||||
if mode:
|
if mode:
|
||||||
self.nvda.speak(f"{mode} disabled")
|
self.nvda.speak(f"{mode} disabled")
|
||||||
|
self.logger.debug(f"exited from slider mode {mode}")
|
||||||
mode = None
|
mode = None
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user