mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Don't hardcode left-shift to disabe keyboard input on linux.
Left-shift can be used for gamepad input now. Fixes issue 4968.
This commit is contained in:
@ -116,8 +116,7 @@ KeyboardMouse::Key::Key(Display* const display, KeyCode keycode, const char* key
|
|||||||
ControlState KeyboardMouse::Key::GetState() const
|
ControlState KeyboardMouse::Key::GetState() const
|
||||||
{
|
{
|
||||||
const KeyCode shift = XKeysymToKeycode(m_display, XK_Shift_L);
|
const KeyCode shift = XKeysymToKeycode(m_display, XK_Shift_L);
|
||||||
return (m_keyboard[m_keycode / 8] & (1 << (m_keycode % 8))) != 0
|
return (m_keyboard[m_keycode / 8] & (1 << (m_keycode % 8))) != 0;
|
||||||
&& (m_keyboard[shift / 8] & (1 << (shift % 8))) == 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ControlState KeyboardMouse::Button::GetState() const
|
ControlState KeyboardMouse::Button::GetState() const
|
||||||
|
Reference in New Issue
Block a user