summaryrefslogtreecommitdiffstats
path: root/src/input/x11FakeKeyboardHandler.h
diff options
context:
space:
mode:
authorSebastien Braun2010-10-23 17:49:12 +0200
committerSebastien Braun2010-10-24 23:43:08 +0200
commit7e3b963e3a0cbbf9391243e72ceb015e9015d630 (patch)
treed980c26b837ef106e286ea3ed3562ee37ffbd0bf /src/input/x11FakeKeyboardHandler.h
parentFix forgotten change of j to mods in X11FakeKeyboardHandler. (diff)
downloadpvs-7e3b963e3a0cbbf9391243e72ceb015e9015d630.tar.gz
pvs-7e3b963e3a0cbbf9391243e72ceb015e9015d630.tar.xz
pvs-7e3b963e3a0cbbf9391243e72ceb015e9015d630.zip
Documentation fixes and code cleanup
Diffstat (limited to 'src/input/x11FakeKeyboardHandler.h')
-rw-r--r--src/input/x11FakeKeyboardHandler.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/input/x11FakeKeyboardHandler.h b/src/input/x11FakeKeyboardHandler.h
index 6c18dce..7f2d12e 100644
--- a/src/input/x11FakeKeyboardHandler.h
+++ b/src/input/x11FakeKeyboardHandler.h
@@ -19,6 +19,13 @@
#include "inputEventHandler.h"
+/**
+ * Send keyboard events via the XTest extension.
+ * This is unbelievably brittle in the face of non-system-standard keyboard
+ * mappings. Every Linux distribution seems to set up XTest handling in
+ * a different way. The code goes out of its way to find a usable mapping
+ * and use it.
+ */
class X11FakeKeyboardHandler : public InputEventHandler<
input_policy::Match<InputEvent::ET_KEY, InputEvent::EC_PRESS>,
input_policy::Match<InputEvent::ET_KEY, InputEvent::EC_RELEASE>,