summaryrefslogtreecommitdiff
path: root/src/devices/TouchDevice.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/TouchDevice.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/TouchDevice.hpp')
-rw-r--r--src/devices/TouchDevice.hpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/devices/TouchDevice.hpp b/src/devices/TouchDevice.hpp
index 51eb76d4..b18df2d0 100644
--- a/src/devices/TouchDevice.hpp
+++ b/src/devices/TouchDevice.hpp
@@ -4,22 +4,22 @@
class CTouchDevice : public ITouch {
public:
- static SP<CTouchDevice> create(wlr_touch* touch);
+ static SP<CTouchDevice> create(SP<Aquamarine::ITouch> touch);
- virtual bool isVirtual();
- virtual wlr_touch* wlr();
+ virtual bool isVirtual();
+ virtual SP<Aquamarine::ITouch> aq();
private:
- CTouchDevice(wlr_touch* touch);
+ CTouchDevice(SP<Aquamarine::ITouch> touch);
- wlr_touch* touch = nullptr;
+ WP<Aquamarine::ITouch> touch;
- void disconnectCallbacks();
-
- DYNLISTENER(destroy);
- DYNLISTENER(down);
- DYNLISTENER(up);
- DYNLISTENER(motion);
- DYNLISTENER(cancel);
- DYNLISTENER(frame);
+ struct {
+ CHyprSignalListener destroy;
+ CHyprSignalListener down;
+ CHyprSignalListener up;
+ CHyprSignalListener motion;
+ CHyprSignalListener cancel;
+ CHyprSignalListener frame;
+ } listeners;
}; \ No newline at end of file