summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/Src/ControllerInterface
diff options
context:
space:
mode:
authorMatthew Parlane <parlane@gmail.com>2013-01-12 00:01:27 +1300
committerMatthew Parlane <parlane@gmail.com>2013-01-12 00:01:27 +1300
commit465df943a5ff7c58060e695cf0d1414de52a5b82 (patch)
tree175052583f619110b2e1533fa5caa15189869c06 /Source/Core/InputCommon/Src/ControllerInterface
parent65072ad6fb273d5919fc3b419524224ab0e3dcba (diff)
parentf21f097e7a831e752ab36974897b2ba57e266dfc (diff)
Merge branch 'master' into wii-network
Diffstat (limited to 'Source/Core/InputCommon/Src/ControllerInterface')
-rw-r--r--Source/Core/InputCommon/Src/ControllerInterface/Xlib/Xlib.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/Src/ControllerInterface/Xlib/Xlib.cpp b/Source/Core/InputCommon/Src/ControllerInterface/Xlib/Xlib.cpp
index c2030a059d..fa30ba5c62 100644
--- a/Source/Core/InputCommon/Src/ControllerInterface/Xlib/Xlib.cpp
+++ b/Source/Core/InputCommon/Src/ControllerInterface/Xlib/Xlib.cpp
@@ -116,8 +116,7 @@ KeyboardMouse::Key::Key(Display* const display, KeyCode keycode, const char* key
ControlState KeyboardMouse::Key::GetState() const
{
const KeyCode shift = XKeysymToKeycode(m_display, XK_Shift_L);
- return (m_keyboard[m_keycode / 8] & (1 << (m_keycode % 8))) != 0
- && (m_keyboard[shift / 8] & (1 << (shift % 8))) == 0;
+ return (m_keyboard[m_keycode / 8] & (1 << (m_keycode % 8))) != 0;
}
ControlState KeyboardMouse::Button::GetState() const