From c072b661564e1ce3f0f01f1b6ddba0266fbb47b6 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Mon, 6 Jan 2025 00:16:49 +0100 Subject: Fixed missing Touchpad --- Touchpad.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Touchpad.h (limited to 'Touchpad.h') diff --git a/Touchpad.h b/Touchpad.h new file mode 100644 index 0000000..9ee8064 --- /dev/null +++ b/Touchpad.h @@ -0,0 +1,24 @@ +#pragma once + +#include + +class Touchpad +{ +public: + Touchpad(); + + bool is_valid(); + + bool event_available(); + + input_event get_event(); + + bool event_is_button1(const input_event& ev); + bool event_is_button2(const input_event& ev); + +private: + libevdev* m_dev = nullptr; + int m_fd; + bool m_valid; +}; + -- cgit v1.2.3