InputManager: add config option to disable keybinds per device (#10064)
This commit is contained in:
parent
3fa6320a39
commit
225e13c3cc
4 changed files with 14 additions and 4 deletions
|
|
@ -432,7 +432,10 @@ bool CKeybindManager::onKeyEvent(std::any event, SP<IKeyboard> pKeyboard) {
|
|||
return true;
|
||||
}
|
||||
|
||||
auto e = std::any_cast<IKeyboard::SKeyEvent>(event);
|
||||
auto e = std::any_cast<IKeyboard::SKeyEvent>(event);
|
||||
|
||||
if (!pKeyboard->allowBinds)
|
||||
return true;
|
||||
|
||||
const auto KEYCODE = e.keycode + 8; // Because to xkbcommon it's +8 from libinput
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue