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
parent
5925cd4ef3
commit
beb6a2afdc
|
@ -180,6 +180,8 @@ static SDL_Scancode button_to_scancode(int button)
|
||||||
return SDL_SCANCODE_ESCAPE;
|
return SDL_SCANCODE_ESCAPE;
|
||||||
case SDL_GAMEPAD_BUTTON_BACK:
|
case SDL_GAMEPAD_BUTTON_BACK:
|
||||||
return SDL_SCANCODE_ESCAPE;
|
return SDL_SCANCODE_ESCAPE;
|
||||||
|
case SDL_GAMEPAD_BUTTON_START:
|
||||||
|
return SDL_SCANCODE_MENU;
|
||||||
case SDL_GAMEPAD_BUTTON_DPAD_UP:
|
case SDL_GAMEPAD_BUTTON_DPAD_UP:
|
||||||
return SDL_SCANCODE_UP;
|
return SDL_SCANCODE_UP;
|
||||||
case SDL_GAMEPAD_BUTTON_DPAD_DOWN:
|
case SDL_GAMEPAD_BUTTON_DPAD_DOWN:
|
||||||
|
|
Loading…
Reference in New Issue