Added binding by keycodes

This commit is contained in:
vaxerski
2022-07-08 09:27:17 +02:00
parent 75c2a378e3
commit cd0a01f4de
4 changed files with 31 additions and 14 deletions

View File

@@ -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);