aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/devices/VirtualPointer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/VirtualPointer.hpp')
-rw-r--r--src/devices/VirtualPointer.hpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/devices/VirtualPointer.hpp b/src/devices/VirtualPointer.hpp
new file mode 100644
index 00000000..b22c8bf2
--- /dev/null
+++ b/src/devices/VirtualPointer.hpp
@@ -0,0 +1,38 @@
+#pragma once
+
+#include "IPointer.hpp"
+
+class CVirtualPointerV1Resource;
+
+class CVirtualPointer : public IPointer {
+ public:
+ static SP<CVirtualPointer> create(SP<CVirtualPointerV1Resource> resource);
+
+ virtual bool isVirtual();
+ virtual wlr_pointer* wlr();
+
+ private:
+ CVirtualPointer(SP<CVirtualPointerV1Resource>);
+
+ WP<CVirtualPointerV1Resource> pointer;
+
+ void disconnectCallbacks();
+
+ DYNLISTENER(destroy);
+ DYNLISTENER(motion);
+ DYNLISTENER(motionAbsolute);
+ DYNLISTENER(button);
+ DYNLISTENER(axis);
+ DYNLISTENER(frame);
+
+ DYNLISTENER(swipeBegin);
+ DYNLISTENER(swipeEnd);
+ DYNLISTENER(swipeUpdate);
+
+ DYNLISTENER(pinchBegin);
+ DYNLISTENER(pinchEnd);
+ DYNLISTENER(pinchUpdate);
+
+ DYNLISTENER(holdBegin);
+ DYNLISTENER(holdEnd);
+}; \ No newline at end of file