Skip to content

Commit

Permalink
GUI: Expose sws scroll wheel behavior option
Browse files Browse the repository at this point in the history
  • Loading branch information
valinet committed Oct 12, 2022
1 parent 9d64a8c commit 5cef3b1
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
18 changes: 18 additions & 0 deletions ExplorerPatcher/dllmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -5764,6 +5764,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);
Expand Down
5 changes: 5 additions & 0 deletions ExplorerPatcher/settings.reg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions ExplorerPatcher/settings10.reg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5cef3b1

Please sign in to comment.