diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-09 12:23:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-09 12:23:41 +0300 |
commit | f3427cbc981e5ad530d1a73ab4ecbf6b64751774 (patch) | |
tree | 06752704b2abdcad51035f14e888f185e628047c /intern/ghost/intern/GHOST_SystemX11.h | |
parent | 5165d6293153fd622e11c2f9f991a8693b765ccb (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.h | 5 |
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 |