Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't hardcode left-shift to disabe keyboard input on linux.
Left-shift can be used for gamepad input now.
Fixes issue 4968.
  • Loading branch information
jordan-woyak committed Jan 10, 2013
1 parent 6598462 commit 0de8fbe
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -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
Expand Down

0 comments on commit 0de8fbe

Please sign in to comment.