diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-08 09:27:17 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-08 09:27:17 +0200 |
| commit | cd0a01f4de6e1489caa35bece331c81dbaab2587 (patch) | |
| tree | 17905972a6749532b6688b27590063f92d9911ec /src/managers/KeybindManager.hpp | |
| parent | 75c2a378e3c9368feb57a31710de26decc3da3bc (diff) | |
Added binding by keycodes
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 c667a41c..08a1cba3 100644 --- a/src/managers/KeybindManager.hpp +++ b/src/managers/KeybindManager.hpp @@ -8,6 +8,7 @@ struct SKeybind { std::string key = ""; + int keycode = -1; uint32_t modmask = 0; std::string handler = ""; std::string arg = ""; @@ -19,7 +20,7 @@ class CKeybindManager { public: CKeybindManager(); - bool handleKeybinds(const uint32_t&, const xkb_keysym_t&); + bool handleKeybinds(const uint32_t&, const xkb_keysym_t&, const int&); void addKeybind(SKeybind); void removeKeybind(uint32_t, const std::string&); uint32_t stringToModMask(std::string); |
