diff --git a/ext/native/input/input_state.cpp b/ext/native/input/input_state.cpp index 024eaf2c9f5e..8c28473f1dae 100644 --- a/ext/native/input/input_state.cpp +++ b/ext/native/input/input_state.cpp @@ -28,33 +28,6 @@ const char *GetDeviceName(int deviceId) { } } -// Default pad mapping to button bits. Used for UI and stuff that doesn't use PPSSPP's key mapping system. -int MapPadButtonFixed(int keycode) { - switch (keycode) { - case NKCODE_BACK: return PAD_BUTTON_BACK; // Back - case NKCODE_MENU: return PAD_BUTTON_MENU; // Menu - - case NKCODE_Z: - case NKCODE_SPACE: - case NKCODE_BUTTON_1: - case NKCODE_BUTTON_A: // same as NKCODE_OUYA_BUTTON_O and NKCODE_BUTTON_CROSS_PS3 - return PAD_BUTTON_A; - - case NKCODE_ESCAPE: - case NKCODE_BUTTON_2: - case NKCODE_BUTTON_B: // same as NKCODE_OUYA_BUTTON_A and NKCODE_BUTTON_CIRCLE_PS3: - return PAD_BUTTON_B; - - case NKCODE_DPAD_LEFT: return PAD_BUTTON_LEFT; - case NKCODE_DPAD_RIGHT: return PAD_BUTTON_RIGHT; - case NKCODE_DPAD_UP: return PAD_BUTTON_UP; - case NKCODE_DPAD_DOWN: return PAD_BUTTON_DOWN; - - default: - return 0; - } -} - std::vector dpadKeys; std::vector confirmKeys; std::vector cancelKeys;