Skip to content

Commit

Permalink
WIP Switch SDL2 key handling to scancodes for layout agnostic hotkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
IonAgorria committed May 22, 2024
1 parent 1f4b4a5 commit e48f5fb
Show file tree
Hide file tree
Showing 4 changed files with 321 additions and 195 deletions.
3 changes: 3 additions & 0 deletions Source/Game/Runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,9 @@ int SDL_main(int argc, char *argv[])
if (sdlresult < 0) {
ErrH.Abort("Error initializing SDLNet", XERR_CRITICAL, sdlresult, SDLNet_GetError());
}

//Init keys
initKeyboardMapping();

//Do game content detection
detectGameContent();
Expand Down
Loading

0 comments on commit e48f5fb

Please sign in to comment.