From cdf85d6e04e664e4f56acd05affa287ac63ed125 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 12 Jan 2025 12:34:13 +0100 Subject: Detect touchpad --- Touchpad.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Touchpad.h') 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 m_ev; }; -- cgit v1.2.3