input: support xkb v2 format (#11482)
This commit is contained in:
parent
c7b9969129
commit
38169c8fdd
8 changed files with 62 additions and 28 deletions
|
|
@ -99,7 +99,8 @@ class IKeyboard : public IHID {
|
|||
xkb_state* m_xkbStaticState = nullptr;
|
||||
xkb_state* m_xkbSymState = nullptr; // same as static but gets layouts
|
||||
|
||||
xkb_keymap* m_xkbKeymap = nullptr;
|
||||
xkb_keymap* m_xkbKeymap = nullptr;
|
||||
xkb_keymap* m_xkbKeymapV1 = nullptr;
|
||||
|
||||
struct {
|
||||
uint32_t depressed = 0, latched = 0, locked = 0, group = 0;
|
||||
|
|
@ -113,6 +114,9 @@ class IKeyboard : public IHID {
|
|||
std::string m_xkbKeymapString = "";
|
||||
Hyprutils::OS::CFileDescriptor m_xkbKeymapFD;
|
||||
|
||||
std::string m_xkbKeymapV1String = "";
|
||||
Hyprutils::OS::CFileDescriptor m_xkbKeymapV1FD;
|
||||
|
||||
SStringRuleNames m_currentRules;
|
||||
int m_repeatRate = 0;
|
||||
int m_repeatDelay = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue