InputManager: add config option to disable keybinds per device (#10064)

This commit is contained in:
nyx 2025-04-16 20:19:10 -04:00 committed by GitHub
parent 3fa6320a39
commit 225e13c3cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 14 additions and 4 deletions

View file

@ -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