diff --git a/src/emulator.cpp b/src/emulator.cpp index 95735507..bccabe81 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -210,6 +210,12 @@ void keyboardEvent(SDL_Event* event) { case SDLK_DOWN: button = ScePadButton::SCE_PAD_BUTTON_DOWN; break; case SDLK_LEFT: button = ScePadButton::SCE_PAD_BUTTON_LEFT; break; case SDLK_RIGHT: button = ScePadButton::SCE_PAD_BUTTON_RIGHT; break; + case SDLK_KP_8: button = ScePadButton ::SCE_PAD_BUTTON_TRIANGLE; break; + case SDLK_KP_6: button = ScePadButton ::SCE_PAD_BUTTON_CIRCLE; break; + case SDLK_KP_2: button = ScePadButton ::SCE_PAD_BUTTON_CROSS; break; + case SDLK_KP_4: button = ScePadButton ::SCE_PAD_BUTTON_SQUARE; break; + case SDLK_RETURN: button = ScePadButton ::SCE_PAD_BUTTON_OPTIONS; break; + default: break; } if (button != 0) {