aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/events/Devices.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-10-04 20:07:21 +0100
committervaxerski <[email protected]>2022-10-04 20:07:21 +0100
commit0d702b556d0a52f1df53ac1e52fac11b8302783b (patch)
tree39e5f11ad37ec82248b7bbdb1ca09587dc511813 /src/events/Devices.cpp
parent9bbae5b8e2e593b04f6505c9f35c7e9affa9ab6f (diff)
downloadHyprland-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.cpp4
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;