From 73f61d908c8eb72132672a7eaa858c46e0c77fbc Mon Sep 17 00:00:00 2001 From: The Dax Date: Fri, 31 Jan 2014 00:54:38 -0500 Subject: [PATCH] Use [Unknown]'s suggested method instead. --- UI/MainScreen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index 9409adb1c4..2fd4a5e470 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -97,16 +97,16 @@ public: std::vector pspKeys; bool showInfo = false; - if (HasFocus() && (key.flags & KEY_UP) && KeyMap::KeyToPspButton(key.deviceId, key.keyCode, &pspKeys)) { + if (KeyMap::KeyToPspButton(key.deviceId, key.keyCode, &pspKeys)) { for (auto it = pspKeys.begin(), end = pspKeys.end(); it != end; ++it) { // If the button mapped to triangle, then show the info. - if (*it == CTRL_TRIANGLE) { + if (HasFocus() && (key.flags & KEY_UP) && *it == CTRL_TRIANGLE) { showInfo = true; } } } else if (hovering_ && key.deviceId == DEVICE_ID_MOUSE && key.keyCode == NKCODE_EXT_MOUSEBUTTON_2) { // If it's the right mouse button, and it's not otherwise mapped, show the info also. - if (HasFocus() && (key.flags & KEY_UP)) { + if (key.flags & KEY_UP) { showInfo = true; } }