summaryrefslogtreecommitdiffhomepage
path: root/Touchpad.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-12 12:34:13 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-12 12:34:13 +0100
commitcdf85d6e04e664e4f56acd05affa287ac63ed125 (patch)
treef412284c81b7e9bd76a6e9ab5d40139850478164 /Touchpad.h
parent4c5f531300efe0faf2aea88dd6c78f05012934c8 (diff)
Detect touchpad
Diffstat (limited to 'Touchpad.h')
-rw-r--r--Touchpad.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Touchpad.h b/Touchpad.h
index 0474d04..b5945fe 100644
--- a/Touchpad.h
+++ b/Touchpad.h
@@ -8,6 +8,7 @@ class Touchpad
{
public:
Touchpad();
+ ~Touchpad();
bool is_valid();
@@ -19,10 +20,9 @@ public:
bool event_is_button2(const input_event& ev);
private:
- libevdev* m_dev = nullptr;
int m_fd;
+ libevdev* m_dev;
bool m_valid;
-
std::optional<input_event> m_ev;
};