diff options
author | vaxerski <[email protected]> | 2022-06-08 22:09:35 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-06-08 22:09:35 +0200 |
commit | 638b44cabd9e9f1d22f9d176345ffe8f8c7969c7 (patch) | |
tree | a0038646a012bb923f971966b80b6865ae6d4bec | |
parent | 8f0b963729fbce703222defdb1598bdb6f08849e (diff) | |
download | Hyprland-638b44cabd9e9f1d22f9d176345ffe8f8c7969c7.tar.gz Hyprland-638b44cabd9e9f1d22f9d176345ffe8f8c7969c7.zip |
Attach touch devices raw
-rw-r--r-- | src/events/Devices.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/events/Devices.cpp b/src/events/Devices.cpp index cb6ea874..748006fe 100644 --- a/src/events/Devices.cpp +++ b/src/events/Devices.cpp @@ -73,6 +73,11 @@ void Events::listener_newInput(wl_listener* listener, void* data) { Debug::log(LOG, "Attached a mouse with name %s", DEVICE->name); g_pInputManager->newMouse(DEVICE); break; + case WLR_INPUT_DEVICE_TOUCH: + Debug::log(LOG, "Attached a touch device with name %s", DEVICE->name); + Debug::log(WARN, "!!!! Hyprland does not directly support touchscreens, bugs may occur !!!!"); + wlr_cursor_attach_input_device(g_pCompositor->m_sWLRCursor, DEVICE); + break; default: break; } |