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 13:53:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-09 13:53:39 +0300
commit9bcced83ee89e2844fa233b5e1e31aeeb892ade8 (patch)
tree9843c65a29837726f2102e91d2670691564a6620 /intern/ghost
parent6f4c7f1f0173773fc75e2ad0c992f384d8a193b6 (diff)
GHOST/X11: Print the keycode w/ debug enabled
Diffstat (limited to 'intern/ghost')
-rw-r--r--intern/ghost/intern/GHOST_SystemX11.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_SystemX11.cpp b/intern/ghost/intern/GHOST_SystemX11.cpp
index b8069e81eab..ac77fb3e196 100644
--- a/intern/ghost/intern/GHOST_SystemX11.cpp
+++ b/intern/ghost/intern/GHOST_SystemX11.cpp
@@ -1795,10 +1795,14 @@ ghost_key_from_keycode(const XkbDescPtr xkb_descr, const KeyCode keycode)
if (keycode >= xkb_descr->min_key_code && keycode <= xkb_descr->max_key_code) {
const char *id_str = xkb_descr->names->keys[keycode].name;
const uint32_t id = MAKE_ID(id_str[0], id_str[1], id_str[2], id_str[3]);
- // printf("scancode is: %.*s\n", XkbKeyNameLength, id_str);
switch (id) {
case MAKE_ID('T', 'L', 'D', 'E'):
return GHOST_kKeyAccentGrave;
+#ifdef GHOST_DEBUG
+ default:
+ printf("%s unhandled keycode: %.*s\n", __func__, XkbKeyNameLength, id_str);
+ break;
+#endif
}
}
else {