Make sure Keyboard::Key::GetState returns either 0 or 1 in linux to make sure key presses are registered.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5325 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
c3b1705e3f
commit
58f7de09dd
|
@ -96,7 +96,7 @@ Keyboard::Key::Key(Display* const display, KeyCode keycode)
|
|||
|
||||
ControlState Keyboard::Key::GetState(const State* const state)
|
||||
{
|
||||
return state->keyboard[m_keycode/8] & (1 << (m_keycode%8));
|
||||
return (state->keyboard[m_keycode/8] & (1 << (m_keycode%8))) != 0;
|
||||
}
|
||||
|
||||
std::string Keyboard::Key::GetName() const
|
||||
|
|
Loading…
Reference in New Issue