Hold space to temporary switch to pan tool

This commit is contained in:
Yousef Khadadeh 2025-09-28 18:25:46 +03:00
parent 658799610b
commit d52fe2ded2
5 changed files with 24 additions and 6 deletions

View file

@ -45,6 +45,7 @@ InputManager::InputManager() {
defaultKeyAssignments[{0, SDLK_F1}] = KEY_OPEN_CHAT;
defaultKeyAssignments[{0, SDLK_F3}] = KEY_SHOW_METRICS;
defaultKeyAssignments[{0, SDLK_F2}] = KEY_SHOW_PLAYER_LIST;
defaultKeyAssignments[{0, SDLK_SPACE}] = KEY_HOLD_TO_PAN;
#ifdef __EMSCRIPTEN__
// Without this, SDL eats the CTRL-V event that initiates the paste event