summaryrefslogtreecommitdiff
path: root/src/events/Devices.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2024-07-21 13:09:54 +0200
committerGitHub <noreply@github.com>2024-07-21 13:09:54 +0200
commit016da234d0e852de3ef20eb2e89ac58d2a85f6e7 (patch)
tree496085987176551b0794fffc069877d44943e2f1 /src/events/Devices.cpp
parentf642fb97df5c69267a03452533de383ff8023570 (diff)
Core: Move to aquamarine (#6608)
Moves Hyprland from wlroots to aquamarine for the backend. --------- Signed-off-by: Vaxry <vaxry@vaxry.net> Co-authored-by: Mihai Fufezan <mihai@fufexan.net> Co-authored-by: Jan Beich <jbeich@FreeBSD.org> Co-authored-by: vaxerski <vaxerski@users.noreply.github.com> Co-authored-by: UjinT34 <41110182+UjinT34@users.noreply.github.com> Co-authored-by: Tom Englund <tomenglund26@gmail.com> Co-authored-by: Ikalco <73481042+ikalco@users.noreply.github.com> Co-authored-by: diniamo <diniamo53@gmail.com>
Diffstat (limited to 'src/events/Devices.cpp')
-rw-r--r--src/events/Devices.cpp50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/events/Devices.cpp b/src/events/Devices.cpp
deleted file mode 100644
index fedc844e..00000000
--- a/src/events/Devices.cpp
+++ /dev/null
@@ -1,50 +0,0 @@
-#include "Events.hpp"
-
-#include "../Compositor.hpp"
-#include "../helpers/WLClasses.hpp"
-#include "../managers/input/InputManager.hpp"
-#include "../render/Renderer.hpp"
-
-// ---------------------------------------------------- //
-// _____ ________ _______ _____ ______ _____ //
-// | __ \| ____\ \ / /_ _/ ____| ____|/ ____| //
-// | | | | |__ \ \ / / | || | | |__ | (___ //
-// | | | | __| \ \/ / | || | | __| \___ \ //
-// | |__| | |____ \ / _| || |____| |____ ____) | //
-// |_____/|______| \/ |_____\_____|______|_____/ //
-// //
-// ---------------------------------------------------- //
-
-void Events::listener_newInput(wl_listener* listener, void* data) {
- const auto DEVICE = (wlr_input_device*)data;
-
- switch (DEVICE->type) {
- case WLR_INPUT_DEVICE_KEYBOARD:
- Debug::log(LOG, "Attached a keyboard with name {}", DEVICE->name);
- g_pInputManager->newKeyboard(DEVICE);
- break;
- case WLR_INPUT_DEVICE_POINTER:
- Debug::log(LOG, "Attached a mouse with name {}", DEVICE->name);
- g_pInputManager->newMouse(DEVICE);
- break;
- case WLR_INPUT_DEVICE_TOUCH:
- Debug::log(LOG, "Attached a touch device with name {}", DEVICE->name);
- g_pInputManager->newTouchDevice(DEVICE);
- break;
- case WLR_INPUT_DEVICE_TABLET:
- Debug::log(LOG, "Attached a tablet with name {}", DEVICE->name);
- g_pInputManager->newTablet(DEVICE);
- break;
- case WLR_INPUT_DEVICE_TABLET_PAD:
- Debug::log(LOG, "Attached a tablet pad with name {}", DEVICE->name);
- g_pInputManager->newTabletPad(DEVICE);
- break;
- case WLR_INPUT_DEVICE_SWITCH:
- Debug::log(LOG, "Attached a switch device with name {}", DEVICE->name);
- g_pInputManager->newSwitch(DEVICE);
- break;
- default: Debug::log(WARN, "Unrecognized input device plugged in: {}", DEVICE->name); break;
- }
-
- g_pInputManager->updateCapabilities();
-}