feat(keyboard): update keyboard layouts and key display mappings for multiple languages

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
This commit is contained in:
luckfox-eng29
2026-05-08 09:59:04 +08:00
parent 7cef8baa0d
commit bf84660c8b
16 changed files with 190 additions and 43 deletions

8
usb.go
View File

@@ -157,6 +157,14 @@ type hidRpcHandler struct {
session *Session
}
func (h *hidRpcHandler) HandleHandshake(version byte) error {
if h.session.HidChannel != nil {
handshakeData := hidrpc.MarshalHandshake(version)
return h.session.HidChannel.Send(handshakeData)
}
return nil
}
func (h *hidRpcHandler) HandleKeyboardReport(modifier byte, keys []byte) error {
return rpcKeyboardReport(modifier, keys)
}