Added binding by keycodes
This commit is contained in:
parent
75c2a378e3
commit
cd0a01f4de
4 changed files with 31 additions and 14 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue