#pragma once #include #include class Touchpad { public: Touchpad(); ~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: int m_fd; libevdev* m_dev; bool m_valid; std::optional m_ev; };