diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 8805b12..b32a549 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -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); diff --git a/ExplorerPatcher/settings.reg b/ExplorerPatcher/settings.reg index 7c9a625..1425538 100644 --- a/ExplorerPatcher/settings.reg +++ b/ExplorerPatcher/settings.reg @@ -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 diff --git a/ExplorerPatcher/settings10.reg b/ExplorerPatcher/settings10.reg index af4cde4..a7788a7 100644 --- a/ExplorerPatcher/settings10.reg +++ b/ExplorerPatcher/settings10.reg @@ -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 diff --git a/libs/sws b/libs/sws index 9cc6ce1..a8b25cd 160000 --- a/libs/sws +++ b/libs/sws @@ -1 +1 @@ -Subproject commit 9cc6ce1b6c592b4e3f56fd0241d38ccfbaa8cd61 +Subproject commit a8b25cd96e4481c0c89c280e07e3ee17da7f61cf