Remap SDL face buttons to be usable without a keypad.

This commit is contained in:
squidbus 2024-07-13 18:30:52 -07:00 committed by TheTurtle
parent 175ffe8ce3
commit a4fd0d6386
1 changed files with 4 additions and 4 deletions

View File

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