diff options
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; |