From 0d702b556d0a52f1df53ac1e52fac11b8302783b Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 4 Oct 2022 20:07:21 +0100 Subject: Add switch device handling and binds --- src/helpers/WLClasses.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/helpers') diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp index 241899a1..e66f1b52 100644 --- a/src/helpers/WLClasses.hpp +++ b/src/helpers/WLClasses.hpp @@ -332,3 +332,14 @@ struct STouchDevice { return pWlrDevice == other.pWlrDevice; } }; + +struct SSwitchDevice { + wlr_input_device* pWlrDevice = nullptr; + + DYNLISTENER(destroy); + DYNLISTENER(toggle); + + bool operator==(const SSwitchDevice& other) { + return pWlrDevice == other.pWlrDevice; + } +}; -- cgit v1.2.3