Browse Source

Enable CTRL + Mouse scroll wheel for map zoom

pull/7777/head
obligaron 1 year ago committed by Anders Jenbo
parent
commit
cf94287945
  1. 8
      Source/diablo.cpp

8
Source/diablo.cpp

@ -776,6 +776,10 @@ void GameEventHandler(const SDL_Event &event, uint16_t modState)
ChatLogScrollUp();
} else if (IsStashOpen) {
Stash.PreviousPage();
} else if (SDL_GetModState() & KMOD_CTRL) {
if (AutomapActive) {
AutomapZoomIn();
}
} else {
sgOptions.Keymapper.KeyPressed(MouseScrollUpButton);
}
@ -790,6 +794,10 @@ void GameEventHandler(const SDL_Event &event, uint16_t modState)
ChatLogScrollDown();
} else if (IsStashOpen) {
Stash.NextPage();
} else if (SDL_GetModState() & KMOD_CTRL) {
if (AutomapActive) {
AutomapZoomOut();
}
} else {
sgOptions.Keymapper.KeyPressed(MouseScrollDownButton);
}

Loading…
Cancel
Save