diff options
author | Vaxry <[email protected]> | 2024-05-03 22:34:10 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-05-03 22:40:27 +0100 |
commit | 1237732b97fcf21a19aed16f2ef966118a3ca2aa (patch) | |
tree | 15a3a29377af7f0ce3dd428229587e476ce92db3 /src/managers/KeybindManager.hpp | |
parent | 1d2acbe19355c8640d54a4b6cba225c6f4370c85 (diff) | |
download | Hyprland-1237732b97fcf21a19aed16f2ef966118a3ca2aa.tar.gz Hyprland-1237732b97fcf21a19aed16f2ef966118a3ca2aa.zip |
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.
Diffstat (limited to 'src/managers/KeybindManager.hpp')
-rw-r--r-- | src/managers/KeybindManager.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<IKeyboard>); bool onAxisEvent(wlr_pointer_axis_event*); bool onMouseEvent(wlr_pointer_button_event*); void resizeWithBorder(wlr_pointer_button_event*); |