From 89c6f7645617b0180a2d86285926c38b275b74f7 Mon Sep 17 00:00:00 2001 From: Andrey Bondrov Date: Sat, 13 Dec 2014 12:20:31 +1000 Subject: [PATCH] Less confusing function name --- Common/KeyMap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/KeyMap.cpp b/Common/KeyMap.cpp index d3f35634f3..810e1c7f68 100644 --- a/Common/KeyMap.cpp +++ b/Common/KeyMap.cpp @@ -719,7 +719,7 @@ KeyDef AxisDef(int deviceId, int axisId, int direction) { return KeyDef(deviceId, TranslateKeyCodeFromAxis(axisId, direction)); } -int SwappedKey(int btn) { +int CheckAxisSwap(int btn) { if (g_swapped_keys) { switch (btn) { case CTRL_UP: btn = VIRTKEY_AXIS_Y_MAX; @@ -748,7 +748,7 @@ static bool FindKeyMapping(int deviceId, int key, std::vector *psp_button) for (auto iter = g_controllerMap.begin(); iter != g_controllerMap.end(); ++iter) { for (auto iter2 = iter->second.begin(); iter2 != iter->second.end(); ++iter2) { if (*iter2 == KeyDef(deviceId, key)) { - psp_button->push_back(SwappedKey(iter->first)); + psp_button->push_back(CheckAxisSwap(iter->first)); } } }