Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-09 12:23:41 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-09 12:23:41 +0300
commitf3427cbc981e5ad530d1a73ab4ecbf6b64751774 (patch)
tree06752704b2abdcad51035f14e888f185e628047c /intern/ghost/intern/GHOST_SystemX11.h
parent5165d6293153fd622e11c2f9f991a8693b765ccb (diff)
GHOST/X11: support accessing physical keycodes
This means we can check keys such as tilde in a generic way.
Diffstat (limited to 'intern/ghost/intern/GHOST_SystemX11.h')
-rw-r--r--intern/ghost/intern/GHOST_SystemX11.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_SystemX11.h b/intern/ghost/intern/GHOST_SystemX11.h
index 004856c221b..de9a2cdcce9 100644
--- a/intern/ghost/intern/GHOST_SystemX11.h
+++ b/intern/ghost/intern/GHOST_SystemX11.h
@@ -34,6 +34,7 @@
#define __GHOST_SYSTEMX11_H__
#include <X11/Xlib.h>
+#include <X11/XKBlib.h> /* allow detectable autorepeate */
#include "GHOST_System.h"
#include "../GHOST_Types.h"
@@ -353,6 +354,10 @@ public:
private:
Display *m_display;
+
+ /* Use for scancode lookups. */
+ XkbDescRec *m_xkb_descr;
+
#if defined(WITH_X11_XINPUT) && defined(X_HAVE_UTF8_STRING)
XIM m_xim;
#endif