summaryrefslogtreecommitdiff
path: root/src/devices/IHID.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-05-05 22:18:10 +0100
committerVaxry <43317083+vaxerski@users.noreply.github.com>2024-05-09 13:37:39 +0100
commited411f53bdcf8d455f9e6ca769693aa84dc8372f (patch)
treeaacedb349acdd1022975d7b622dc7cfe11388223 /src/devices/IHID.hpp
parente4e84064f2d07810e0c150bce1369a0a00503e9a (diff)
cursor: move to a hyprland impl
This moves wlr_cursor to a completely new impl mostly under CPointerManager Also adds beginSimple to OpenGL for simple render passes (e.g. cursor)
Diffstat (limited to 'src/devices/IHID.hpp')
-rw-r--r--src/devices/IHID.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/devices/IHID.hpp b/src/devices/IHID.hpp
index c2b397c7..2830864b 100644
--- a/src/devices/IHID.hpp
+++ b/src/devices/IHID.hpp
@@ -10,13 +10,24 @@ enum eHIDCapabilityType : uint32_t {
HID_INPUT_CAPABILITY_TOUCH = (1 << 2),
};
+enum eHIDType {
+ HID_TYPE_UNKNOWN = 0,
+ HID_TYPE_POINTER,
+ HID_TYPE_KEYBOARD,
+ HID_TYPE_TOUCH,
+ HID_TYPE_TABLET,
+};
+
/*
Base class for a HID device.
This could be a keyboard, a mouse, or a touchscreen.
*/
class IHID {
public:
+ virtual ~IHID() {}
+
virtual uint32_t getCapabilities() = 0;
+ virtual eHIDType getType();
struct {
CSignal destroy;