summaryrefslogtreecommitdiffhomepage
path: root/Touchpad.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-06 11:41:05 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-06 11:41:05 +0100
commitaa210ed8a27387882fc7fd0dcd7cf961a9adc88f (patch)
tree9a0a3ac1cd0b209161e81c6f6eacc12fdd87e351 /Touchpad.h
parent8609722958b89ce71e8336e3254fc5a88912a0e8 (diff)
Fix touchpad event input reading
Diffstat (limited to 'Touchpad.h')
-rw-r--r--Touchpad.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Touchpad.h b/Touchpad.h
index 9ee8064..0474d04 100644
--- a/Touchpad.h
+++ b/Touchpad.h
@@ -2,6 +2,8 @@
#include <libevdev/libevdev.h>
+#include <optional>
+
class Touchpad
{
public:
@@ -20,5 +22,7 @@ private:
libevdev* m_dev = nullptr;
int m_fd;
bool m_valid;
+
+ std::optional<input_event> m_ev;
};