diff options
author | vaxerski <[email protected]> | 2022-10-04 20:07:21 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-10-04 20:07:21 +0100 |
commit | 0d702b556d0a52f1df53ac1e52fac11b8302783b (patch) | |
tree | 39e5f11ad37ec82248b7bbdb1ca09587dc511813 /src/events/Devices.cpp | |
parent | 9bbae5b8e2e593b04f6505c9f35c7e9affa9ab6f (diff) | |
download | Hyprland-0d702b556d0a52f1df53ac1e52fac11b8302783b.tar.gz Hyprland-0d702b556d0a52f1df53ac1e52fac11b8302783b.zip |
Add switch device handling and binds
Diffstat (limited to 'src/events/Devices.cpp')
-rw-r--r-- | src/events/Devices.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/events/Devices.cpp b/src/events/Devices.cpp index 8dea879f..eecba44f 100644 --- a/src/events/Devices.cpp +++ b/src/events/Devices.cpp @@ -82,6 +82,10 @@ void Events::listener_newInput(wl_listener* listener, void* data) { Debug::log(LOG, "Attached a tablet pad with name %s", DEVICE->name); g_pInputManager->newTabletPad(DEVICE); break; + case WLR_INPUT_DEVICE_SWITCH: + Debug::log(LOG, "Attached a switch device with name %s", DEVICE->name); + g_pInputManager->newSwitch(DEVICE); + break; default: Debug::log(WARN, "Unrecognized input device plugged in: %s", DEVICE->name); break; |