mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-12 09:25:42 +00:00
Map the Android MENU button back to the SDL MENU key
Thanks to @AntTheAlchemist for the investigation!
Fixes https://github.com/libsdl-org/SDL/issues/7318
(cherry picked from commit beb6a2afdc)
This commit is contained in:
parent
2c6995778e
commit
69b2baec5c
1 changed files with 2 additions and 0 deletions
|
|
@ -185,6 +185,8 @@ static SDL_Scancode button_to_scancode(int button)
|
|||
return SDL_SCANCODE_ESCAPE;
|
||||
case SDL_CONTROLLER_BUTTON_BACK:
|
||||
return SDL_SCANCODE_ESCAPE;
|
||||
case SDL_CONTROLLER_BUTTON_START:
|
||||
return SDL_SCANCODE_MENU;
|
||||
case SDL_CONTROLLER_BUTTON_DPAD_UP:
|
||||
return SDL_SCANCODE_UP;
|
||||
case SDL_CONTROLLER_BUTTON_DPAD_DOWN:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue