summaryrefslogtreecommitdiffstats
path: root/src/input/x11FakeMouseHandler.h
diff options
context:
space:
mode:
authorSebastien Braun2010-11-04 00:38:24 +0100
committerSebastien Braun2010-11-04 00:38:24 +0100
commit4fcc0efae9738bb28922da592fff78cfef50277b (patch)
treeb3855b36abe874606a802ec75fc573543d2d7b35 /src/input/x11FakeMouseHandler.h
parent[PVSMGRTOUCH] resetall bug fixed (diff)
parentDocumentation fixes and code cleanup (diff)
downloadpvs-4fcc0efae9738bb28922da592fff78cfef50277b.tar.gz
pvs-4fcc0efae9738bb28922da592fff78cfef50277b.tar.xz
pvs-4fcc0efae9738bb28922da592fff78cfef50277b.zip
Merge input handling work to master
Diffstat (limited to 'src/input/x11FakeMouseHandler.h')
-rw-r--r--src/input/x11FakeMouseHandler.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/input/x11FakeMouseHandler.h b/src/input/x11FakeMouseHandler.h
index 0e32256..2700829 100644
--- a/src/input/x11FakeMouseHandler.h
+++ b/src/input/x11FakeMouseHandler.h
@@ -19,16 +19,28 @@
#include "inputEventHandler.h"
-class X11FakeMouseButtonHandler : public DefaultInputEventHandler<InputEvent::ET_BUTTON>
+/**
+ * Send mouse button events via the XTest extension.
+ */
+class X11FakeMouseButtonHandler : public InputEventHandler<
+ input_policy::Match<InputEvent::ET_BUTTON>,
+ input_policy::Require<input_policy::X11GUI>,
+ input_policy::Unprivileged>
{
public:
- void handle(InputEvent const&, InputEventContext const* = 0);
+ void doHandle(InputEvent const&, InputEventContext const* = 0);
};
-class X11FakeMouseMovementHandler : public DefaultInputEventHandler<InputEvent::ET_POINTER>
+/**
+ * Send mouse pointer events via the XTest extension.
+ */
+class X11FakeMouseMovementHandler : public InputEventHandler<
+ input_policy::Match<InputEvent::ET_POINTER>,
+ input_policy::Require<input_policy::X11GUI>,
+ input_policy::Unprivileged>
{
public:
- void handle(InputEvent const&, InputEventContext const* = 0);
+ void doHandle(InputEvent const&, InputEventContext const* = 0);
};
#endif /* X11FAKEMOUSEHANDLER_H_ */