diff options
| author | Sebastien Braun | 2010-10-07 22:54:10 +0200 |
|---|---|---|
| committer | Sebastien Braun | 2010-10-07 22:54:10 +0200 |
| commit | e61097b8881bc7e72a5499816cb1199ea274a3ca (patch) | |
| tree | bcfa9f3fe3f43af02845bc21367de395b248600c /src/input/privilegedHandlerForwarder.h | |
| parent | Make behaviour on lookup failures configurable (diff) | |
| download | pvs-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/privilegedHandlerForwarder.h')
| -rw-r--r-- | src/input/privilegedHandlerForwarder.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/input/privilegedHandlerForwarder.h b/src/input/privilegedHandlerForwarder.h index 37e8f24..f5a6cc3 100644 --- a/src/input/privilegedHandlerForwarder.h +++ b/src/input/privilegedHandlerForwarder.h @@ -19,10 +19,12 @@ #include "inputEventHandler.h" -class PrivilegedHandlerForwarder : public DefaultInputEventHandler<InputEvent::ET_SPECIAL> +class PrivilegedHandlerForwarder : public InputEventHandler< + input_policy::Require<input_policy::UnixLike>, + input_policy::Unprivileged> { public: - void handle(InputEvent const& evt, InputEventContext const* = 0); + void doHandle(InputEvent const& evt, InputEventContext const* = 0); void initialize(); private: |
