Skip to content

Commit

Permalink
Remove legacy button mapping.
Browse files Browse the repository at this point in the history
No longer used either.
  • Loading branch information
unknownbrackets committed Mar 14, 2017
1 parent 2812ddc commit 22396eb
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions ext/native/input/input_state.cpp
Expand Up @@ -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<KeyDef> dpadKeys;
std::vector<KeyDef> confirmKeys;
std::vector<KeyDef> cancelKeys;
Expand Down

0 comments on commit 22396eb

Please sign in to comment.