summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/Src/X11InputBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/InputCommon/Src/X11InputBase.cpp')
-rw-r--r--Source/Core/InputCommon/Src/X11InputBase.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/Src/X11InputBase.cpp b/Source/Core/InputCommon/Src/X11InputBase.cpp
index 480b37d408..7f33a7ee7b 100644
--- a/Source/Core/InputCommon/Src/X11InputBase.cpp
+++ b/Source/Core/InputCommon/Src/X11InputBase.cpp
@@ -112,10 +112,16 @@ KeySym wxCharCodeWXToX(int id)
return keySym;
}
-#else
-KeySym wxCharCodeWXToX(int id)
+int wxKeyModWXToX(int modstate)
{
- return NULL;
+ int xstate = 0;
+ if (modstate & wxMOD_ALT)
+ xstate |= 8;
+ if (modstate & wxMOD_SHIFT)
+ xstate |= 1;
+ if (modstate & wxMOD_CONTROL)
+ xstate |= 4;
+ return xstate;
}
#endif
void XKeyToString(unsigned int keycode, char *keyStr) {