mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2025-10-30 08:03:03 +00:00
map cont back button to kb escape
This commit is contained in:
parent
0192cac272
commit
299293ca99
1 changed files with 3 additions and 0 deletions
|
|
@ -1059,6 +1059,9 @@ int cont_button_to_key(SDL_ControllerButtonEvent& button) {
|
|||
return SDLK_RIGHT;
|
||||
case SDL_GameControllerButton::SDL_CONTROLLER_BUTTON_A:
|
||||
return SDLK_RETURN;
|
||||
// Allows closing the menu
|
||||
case SDL_GameControllerButton::SDL_CONTROLLER_BUTTON_BACK:
|
||||
return SDLK_ESCAPE;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue