mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-05-28 17:11:20 +02:00
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:
8
usb.go
8
usb.go
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user