Remap SDL face buttons to be usable without a keypad.

This commit is contained in:
squidbus 2024-07-13 18:30:52 -07:00
parent a50e118808
commit 0009c7ca79

View file

@ -122,16 +122,16 @@ void WindowSDL::onKeyPress(const SDL_Event* event) {
case SDLK_RIGHT:
button = OrbisPadButtonDataOffset::ORBIS_PAD_BUTTON_RIGHT;
break;
case SDLK_KP_8:
case SDLK_C:
button = OrbisPadButtonDataOffset::ORBIS_PAD_BUTTON_TRIANGLE;
break;
case SDLK_KP_6:
case SDLK_B:
button = OrbisPadButtonDataOffset::ORBIS_PAD_BUTTON_CIRCLE;
break;
case SDLK_KP_2:
case SDLK_N:
button = OrbisPadButtonDataOffset::ORBIS_PAD_BUTTON_CROSS;
break;
case SDLK_KP_4:
case SDLK_V:
button = OrbisPadButtonDataOffset::ORBIS_PAD_BUTTON_SQUARE;
break;
case SDLK_RETURN: