From 22396ebe8f78c9064c5c9ecb428bbf51c5f438df Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 13 Mar 2017 22:59:52 -0700 Subject: [PATCH] Remove legacy button mapping. No longer used either. --- ext/native/input/input_state.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/ext/native/input/input_state.cpp b/ext/native/input/input_state.cpp index 024eaf2c9..8c28473f1 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;