From 38268a3d37d05930a98e0eccccdc5655aa89f062 Mon Sep 17 00:00:00 2001 From: Andrey Bondrov Date: Sat, 13 Dec 2014 10:36:13 +1000 Subject: [PATCH] Use constants instead of hardcoded numbers for keys swap --- Common/KeyMap.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Common/KeyMap.cpp b/Common/KeyMap.cpp index d93ff24492..300627f782 100644 --- a/Common/KeyMap.cpp +++ b/Common/KeyMap.cpp @@ -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