summaryrefslogtreecommitdiff
path: root/src/devices/IKeyboard.hpp
diff options
context:
space:
mode:
authorusering-around <useruseringaround@proton.me>2025-09-11 20:42:20 +0300
committerGitHub <noreply@github.com>2025-09-11 19:42:20 +0200
commit38169c8fddcd21bd2c4ccebfa0c32100d5356aa0 (patch)
treee268f85e575db585db80133cbd8b036a6d1c63ca /src/devices/IKeyboard.hpp
parentc7b99691290ef16e04cf0cb4a5007ef29fccc229 (diff)
input: support xkb v2 format (#11482)
Diffstat (limited to 'src/devices/IKeyboard.hpp')
-rw-r--r--src/devices/IKeyboard.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/devices/IKeyboard.hpp b/src/devices/IKeyboard.hpp
index c7832548..9e4bea4e 100644
--- a/src/devices/IKeyboard.hpp
+++ b/src/devices/IKeyboard.hpp
@@ -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;