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:
Glenn Rice 2010-04-10 22:49:57 +00:00
parent c3b1705e3f
commit 58f7de09dd
1 changed files with 1 additions and 1 deletions

View File

@ -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