From 789045e1b2c5be1c339895504d4e182905c9a403 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Sat, 10 Apr 2010 22:49:57 +0000 Subject: [PATCH] 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/branches/stable@5325 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Plugin_GCPadNew/Src/ControllerInterface/Xlib/Xlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/Xlib/Xlib.cpp b/Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/Xlib/Xlib.cpp index 9a4d5d3d53..d8fb6847bd 100644 --- a/Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/Xlib/Xlib.cpp +++ b/Source/Plugins/Plugin_GCPadNew/Src/ControllerInterface/Xlib/Xlib.cpp @@ -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