Remap SDL face buttons to be usable without a keypad.
This commit is contained in:
parent
175ffe8ce3
commit
a4fd0d6386
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue