summaryrefslogtreecommitdiff
path: root/src/devices
diff options
context:
space:
mode:
authornyx <nnyyxxxx@protonmail.com>2025-04-16 20:19:10 -0400
committerGitHub <noreply@github.com>2025-04-17 02:19:10 +0200
commit225e13c3cc83308175f0a9aa18cfa31324155034 (patch)
treebe5d112573273e8d105f3a139d20f937c56df05d /src/devices
parent3fa6320a391ed60779702e058f67649beb787962 (diff)
InputManager: add config option to disable keybinds per device (#10064)
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/IKeyboard.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/devices/IKeyboard.hpp b/src/devices/IKeyboard.hpp
index aabf4cc2..7ac71172 100644
--- a/src/devices/IKeyboard.hpp
+++ b/src/devices/IKeyboard.hpp
@@ -74,8 +74,9 @@ class IKeyboard : public IHID {
void updateXkbStateWithKey(uint32_t xkbKey, bool pressed);
void updateKeymapFD();
- bool active = false;
- bool enabled = true;
+ bool active = false;
+ bool enabled = true;
+ bool allowBinds = true;
// if the keymap is overridden by the implementation,
// don't try to set keyboard rules anymore, to avoid overwriting the requested one.