Less confusing function name

This commit is contained in:
Andrey Bondrov committed 2014-12-13 12:20:31 +10:00
1 parent c41e4ef905
commit 89c6f76456
1 file changed
+2 -2
+2 -2
View File
@@ -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<int> *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));
}
}
}