mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-01 19:25:12 +01:00
Fix #5595: No longer able to navigate map diagonally using arrow keys
This commit is contained in:
@@ -184,24 +184,19 @@ void KeyboardShortcuts::GetKeyboardMapScroll(const uint8 * keysState, sint32 * x
|
||||
#endif
|
||||
switch (shortcutId) {
|
||||
case SHORTCUT_SCROLL_MAP_UP:
|
||||
*x = 0;
|
||||
*y = -1;
|
||||
break;
|
||||
case SHORTCUT_SCROLL_MAP_LEFT:
|
||||
*x = -1;
|
||||
*y = 0;
|
||||
break;
|
||||
case SHORTCUT_SCROLL_MAP_DOWN:
|
||||
*x = 0;
|
||||
*y = 1;
|
||||
break;
|
||||
case SHORTCUT_SCROLL_MAP_RIGHT:
|
||||
*x = 1;
|
||||
*y = 0;
|
||||
break;
|
||||
default:
|
||||
*x = 0;
|
||||
*y = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user