Handle menu button press from controller

This commit is contained in:
Temdog007
2022-02-02 19:21:34 -07:00
committed by Sam Lantinga
parent 2005dd9595
commit b59e75c259
2 changed files with 3 additions and 0 deletions

View File

@@ -103,6 +103,7 @@ keycode_to_SDL(int keycode)
case AKEYCODE_BUTTON_THUMBR:
button = SDL_CONTROLLER_BUTTON_RIGHTSTICK;
break;
case AKEYCODE_MENU:
case AKEYCODE_BUTTON_START:
button = SDL_CONTROLLER_BUTTON_START;
break;