summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/Src/ControllerInterface/Xlib
diff options
context:
space:
mode:
authorNeoBrainX <NeoBrainX@googlemail.com>2013-03-01 01:07:34 +0100
committerNeoBrainX <NeoBrainX@googlemail.com>2013-03-01 01:07:34 +0100
commit7682ed22c6d584bd276c1049c9b5068b1610da61 (patch)
treeea65d89f5b4b172bc1bbbd437ebc28752f336332 /Source/Core/InputCommon/Src/ControllerInterface/Xlib
parent0f617183a8a74f066d1d01a3ed50042cc9824bf8 (diff)
parentbc15919e2ebefe327ce6330f7abdaccaa2fd2004 (diff)
Merge branch 'master' into perfqueries.
Conflicts: Source/Core/VideoCommon/Src/VideoConfig.h Source/Core/VideoCommon/VideoCommon.vcxproj.filters Source/Plugins/Plugin_VideoDX11/Src/VertexManager.cpp Source/Plugins/Plugin_VideoSoftware/Src/Rasterizer.cpp Source/Plugins/Plugin_VideoSoftware/Src/Tev.cpp
Diffstat (limited to 'Source/Core/InputCommon/Src/ControllerInterface/Xlib')
-rw-r--r--Source/Core/InputCommon/Src/ControllerInterface/Xlib/Xlib.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/InputCommon/Src/ControllerInterface/Xlib/Xlib.cpp b/Source/Core/InputCommon/Src/ControllerInterface/Xlib/Xlib.cpp
index 450080bfd2..dad0c6bbf8 100644
--- a/Source/Core/InputCommon/Src/ControllerInterface/Xlib/Xlib.cpp
+++ b/Source/Core/InputCommon/Src/ControllerInterface/Xlib/Xlib.cpp
@@ -1,5 +1,7 @@
#include "Xlib.h"
+#include <X11/XKBlib.h>
+
namespace ciface
{
namespace Xlib
@@ -93,7 +95,7 @@ KeyboardMouse::Key::Key(Display* const display, KeyCode keycode, const char* key
KeySym keysym = 0;
do
{
- keysym = XKeycodeToKeysym(m_display, keycode, i);
+ keysym = XkbKeycodeToKeysym(m_display, keycode, i, 0);
i++;
}
while (keysym == NoSymbol && i < 8);
@@ -113,9 +115,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