mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 19:58:36 +01:00
Use constants instead of hardcoded numbers for keys swap
This commit is contained in:
1 parent
5201f03720
commit
38268a3d37
1 file changed
+4
-4
+4
-4
@@ -939,10 +939,10 @@ void SwapKeys(int btn1, int btn2) {
|
||||
|
||||
// Swap direction buttons and left analog axis
|
||||
void SwapAxis() {
|
||||
SwapKeys(0, 12);
|
||||
SwapKeys(1, 13);
|
||||
SwapKeys(2, 14);
|
||||
SwapKeys(3, 15);
|
||||
SwapKeys(CTRL_UP, VIRTKEY_AXIS_Y_MAX);
|
||||
SwapKeys(CTRL_DOWN, VIRTKEY_AXIS_Y_MIN);
|
||||
SwapKeys(CTRL_LEFT, VIRTKEY_AXIS_X_MIN);
|
||||
SwapKeys(CTRL_RIGHT, VIRTKEY_AXIS_X_MAX);
|
||||
}
|
||||
|
||||
} // KeyMap
|
||||
Reference in new issue
Block a user