mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Use constants instead of hardcoded numbers for keys swap
This commit is contained in:
parent
5201f03720
commit
38268a3d37
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue