refactor(hid): improve keyboard layout compatibility in HID handling functions

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
This commit is contained in:
luckfox-eng29
2026-04-29 20:03:13 +08:00
parent a1da483b27
commit 6292537c23
33 changed files with 2226 additions and 96 deletions

View File

@@ -82,6 +82,9 @@ type UsbGadget struct {
onKeyboardStateChange *func(state KeyboardState)
onHidDeviceMissing *func(device string, err error)
keysDownState KeysDownState
autoReleaseTimers []autoReleaseTimer
log *zerolog.Logger
logSuppressionCounter map[string]int