From 1237732b97fcf21a19aed16f2ef966118a3ca2aa Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 3 May 2024 22:34:10 +0100 Subject: input: Introduce basic hyprland HID classes Implements an intermediary HID class for mice, keyboards and touch devices, removing the old structs from WLClasses.hpp Yes, virtual ones are duplicated a bit, but will likely be de-duped once wlr_input_device is not used anymore. --- src/managers/KeybindManager.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/managers/KeybindManager.hpp') diff --git a/src/managers/KeybindManager.hpp b/src/managers/KeybindManager.hpp index 24e71c6a..c382f3eb 100644 --- a/src/managers/KeybindManager.hpp +++ b/src/managers/KeybindManager.hpp @@ -9,6 +9,7 @@ class CInputManager; class CConfigManager; class CPluginSystem; +class IKeyboard; struct SKeybind { std::string key = ""; @@ -60,7 +61,7 @@ class CKeybindManager { CKeybindManager(); ~CKeybindManager(); - bool onKeyEvent(wlr_keyboard_key_event*, SKeyboard*); + bool onKeyEvent(std::any, SP); bool onAxisEvent(wlr_pointer_axis_event*); bool onMouseEvent(wlr_pointer_button_event*); void resizeWithBorder(wlr_pointer_button_event*); -- cgit v1.2.3