Skip to content

Commit

Permalink
Enable CTRL + Mouse scroll wheel for map zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
obligaron authored and AJenbo committed Feb 18, 2025
1 parent 2d27363 commit 949f5bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Source/diablo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,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 {
KeymapperPress(MouseScrollUpButton);
}
Expand All @@ -772,6 +776,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 {
KeymapperPress(MouseScrollDownButton);
}
Expand Down

0 comments on commit 949f5bc

Please sign in to comment.