summaryrefslogtreecommitdiff
path: root/src/devices/VirtualPointer.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2024-07-21 13:09:54 +0200
committerGitHub <noreply@github.com>2024-07-21 13:09:54 +0200
commit016da234d0e852de3ef20eb2e89ac58d2a85f6e7 (patch)
tree496085987176551b0794fffc069877d44943e2f1 /src/devices/VirtualPointer.hpp
parentf642fb97df5c69267a03452533de383ff8023570 (diff)
Core: Move to aquamarine (#6608)
Moves Hyprland from wlroots to aquamarine for the backend. --------- Signed-off-by: Vaxry <vaxry@vaxry.net> Co-authored-by: Mihai Fufezan <mihai@fufexan.net> Co-authored-by: Jan Beich <jbeich@FreeBSD.org> Co-authored-by: vaxerski <vaxerski@users.noreply.github.com> Co-authored-by: UjinT34 <41110182+UjinT34@users.noreply.github.com> Co-authored-by: Tom Englund <tomenglund26@gmail.com> Co-authored-by: Ikalco <73481042+ikalco@users.noreply.github.com> Co-authored-by: diniamo <diniamo53@gmail.com>
Diffstat (limited to 'src/devices/VirtualPointer.hpp')
-rw-r--r--src/devices/VirtualPointer.hpp37
1 files changed, 19 insertions, 18 deletions
diff --git a/src/devices/VirtualPointer.hpp b/src/devices/VirtualPointer.hpp
index b22c8bf2..1ecfd842 100644
--- a/src/devices/VirtualPointer.hpp
+++ b/src/devices/VirtualPointer.hpp
@@ -6,33 +6,34 @@ class CVirtualPointerV1Resource;
class CVirtualPointer : public IPointer {
public:
- static SP<CVirtualPointer> create(SP<CVirtualPointerV1Resource> resource);
+ static SP<CVirtualPointer> create(SP<CVirtualPointerV1Resource> resource);
- virtual bool isVirtual();
- virtual wlr_pointer* wlr();
+ virtual bool isVirtual();
+ virtual SP<Aquamarine::IPointer> aq();
private:
CVirtualPointer(SP<CVirtualPointerV1Resource>);
WP<CVirtualPointerV1Resource> pointer;
- void disconnectCallbacks();
+ struct {
+ CHyprSignalListener destroy;
- DYNLISTENER(destroy);
- DYNLISTENER(motion);
- DYNLISTENER(motionAbsolute);
- DYNLISTENER(button);
- DYNLISTENER(axis);
- DYNLISTENER(frame);
+ CHyprSignalListener motion;
+ CHyprSignalListener motionAbsolute;
+ CHyprSignalListener button;
+ CHyprSignalListener axis;
+ CHyprSignalListener frame;
- DYNLISTENER(swipeBegin);
- DYNLISTENER(swipeEnd);
- DYNLISTENER(swipeUpdate);
+ CHyprSignalListener swipeBegin;
+ CHyprSignalListener swipeEnd;
+ CHyprSignalListener swipeUpdate;
- DYNLISTENER(pinchBegin);
- DYNLISTENER(pinchEnd);
- DYNLISTENER(pinchUpdate);
+ CHyprSignalListener pinchBegin;
+ CHyprSignalListener pinchEnd;
+ CHyprSignalListener pinchUpdate;
- DYNLISTENER(holdBegin);
- DYNLISTENER(holdEnd);
+ CHyprSignalListener holdBegin;
+ CHyprSignalListener holdEnd;
+ } listeners;
}; \ No newline at end of file