diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-10-04 20:07:21 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-10-04 20:07:21 +0100 |
| commit | 0d702b556d0a52f1df53ac1e52fac11b8302783b (patch) | |
| tree | 39e5f11ad37ec82248b7bbdb1ca09587dc511813 /src/helpers | |
| parent | 9bbae5b8e2e593b04f6505c9f35c7e9affa9ab6f (diff) | |
Add switch device handling and binds
Diffstat (limited to 'src/helpers')
| -rw-r--r-- | src/helpers/WLClasses.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
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; + } +}; |
