summaryrefslogtreecommitdiffstats
path: root/src/input/x11FakeKeyboardHandler.h
diff options
context:
space:
mode:
authorSebastien Braun2010-10-07 22:54:10 +0200
committerSebastien Braun2010-10-07 22:54:10 +0200
commite61097b8881bc7e72a5499816cb1199ea274a3ca (patch)
treebcfa9f3fe3f43af02845bc21367de395b248600c /src/input/x11FakeKeyboardHandler.h
parentMake behaviour on lookup failures configurable (diff)
downloadpvs-e61097b8881bc7e72a5499816cb1199ea274a3ca.tar.gz
pvs-e61097b8881bc7e72a5499816cb1199ea274a3ca.tar.xz
pvs-e61097b8881bc7e72a5499816cb1199ea274a3ca.zip
Rework template meta-magic
- No more implicit dependency on Boost.MPL - Better documentation for template magic - Move input handler policies to handler definitions where they belong - Separate out event descriptions from handlers
Diffstat (limited to 'src/input/x11FakeKeyboardHandler.h')
-rw-r--r--src/input/x11FakeKeyboardHandler.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/input/x11FakeKeyboardHandler.h b/src/input/x11FakeKeyboardHandler.h
index 3dde7cc..6c18dce 100644
--- a/src/input/x11FakeKeyboardHandler.h
+++ b/src/input/x11FakeKeyboardHandler.h
@@ -19,10 +19,14 @@
#include "inputEventHandler.h"
-class X11FakeKeyboardHandler : public DefaultInputEventHandler<InputEvent::ET_KEY>
+class X11FakeKeyboardHandler : public InputEventHandler<
+ input_policy::Match<InputEvent::ET_KEY, InputEvent::EC_PRESS>,
+ input_policy::Match<InputEvent::ET_KEY, InputEvent::EC_RELEASE>,
+ input_policy::Require<input_policy::X11GUI>,
+ input_policy::Unprivileged>
{
public:
- void handle(InputEvent const&, InputEventContext const* = 0);
+ void doHandle(InputEvent const&, InputEventContext const* = 0);
void initialize();
};