mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-23 16:19:44 +00:00
Remove legacy button mapping.
No longer used either.
This commit is contained in:
parent
2812ddcc86
commit
22396ebe8f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user