From 27552976705e416ce481ca74d377578bcbc134e0 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 3 May 2024 01:27:59 +0100 Subject: virtual-pointer: move to new impl --- src/helpers/WLClasses.hpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/helpers') diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp index 6b155e83..7eaebead 100644 --- a/src/helpers/WLClasses.hpp +++ b/src/helpers/WLClasses.hpp @@ -12,6 +12,7 @@ class CMonitor; class CVirtualKeyboard; +class CVirtualPointer; struct SRenderData { CMonitor* pMonitor; @@ -104,13 +105,19 @@ struct SKeyboard { }; struct SMouse { - wlr_input_device* mouse = nullptr; + wlr_input_device* mouse = nullptr; - std::string name = ""; + std::string name = ""; + + bool virt = false; + + bool connected = false; // means connected to the cursor - bool virt = false; + WP virtualPointer; - bool connected = false; // means connected to the cursor + struct { + CHyprSignalListener destroyMouse; + } listeners; DYNLISTENER(destroyMouse); -- cgit v1.2.3