GUI: Expose sws scroll wheel behavior option

This commit is contained in:
Valentin Radu
2022-10-12 17:46:41 +03:00
parent cbc5f19c25
commit 32eb15304a
4 changed files with 29 additions and 1 deletions
+18
View File
@@ -5763,6 +5763,24 @@ void sws_ReadSettings(sws_WindowSwitcher* sws)
&(sws->bAlwaysUseWindowTitleAndIcon),
&dwSize
);
dwSize = sizeof(DWORD);
RegQueryValueExW(
hKey,
TEXT("ScrollWheelBehavior"),
0,
NULL,
&(sws->dwScrollWheelBehavior),
&dwSize
);
dwSize = sizeof(DWORD);
RegQueryValueExW(
hKey,
TEXT("ScrollWheelInvert"),
0,
NULL,
&(sws->bScrollWheelInvert),
&dwSize
);
if (sws->bIsInitialized)
{
sws_WindowSwitcher_UnregisterHotkeys(sws);
+5
View File
@@ -464,6 +464,11 @@
;x 400 400 ms
;x 500 500 ms
"ShowDelay"=dword:00000064
;c 3 Use the scroll wheel to change selection
;x 0 Never (default)
;x 1 When cursor is over the switcher
;x 2 Always
"ScrollWheelBehavior"=dword:00000000
;q
;y Learn more about Simple Window Switcher 🡕
;https://github.com/valinet/ExplorerPatcher/wiki/Simple-Window-Switcher
+5
View File
@@ -370,6 +370,11 @@
;x 400 400 ms
;x 500 500 ms
"ShowDelay"=dword:00000064
;c 3 Use the scroll wheel to change selection
;x 0 Never (default)
;x 1 When cursor is over the switcher
;x 2 Always
"ScrollWheelBehavior"=dword:00000000
;q
;y Learn more about Simple Window Switcher 🡕
;https://github.com/valinet/ExplorerPatcher/wiki/Simple-Window-Switcher