permissions: add permission management for keyboards (#10367)

This commit is contained in:
Vaxry 2025-05-18 18:13:20 +01:00 committed by GitHub
parent 44cb8f769e
commit 158c0f2911
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 48 additions and 12 deletions

View file

@ -78,6 +78,9 @@ class IKeyboard : public IHID {
bool m_enabled = true;
bool m_allowBinds = true;
// permission flag: whether this keyboard is allowed to be processed
bool m_allowed = true;
// if the keymap is overridden by the implementation,
// don't try to set keyboard rules anymore, to avoid overwriting the requested one.
// e.g. Virtual keyboards with custom maps.