hid: fix?

Minizbot2012 2 years ago
parent 554f3fa8fb
commit 37b922c27e
No known key found for this signature in database
GPG Key ID: D0C6EC890E1FD033

Binary file not shown.

@ -4,7 +4,7 @@ import (
"bytes"
_ "embed"
"github.com/Minizbot2012/minxdr"
structs "github.com/OrbTools/OrbCommon/hid/structs"
"github.com/OrbTools/OrbCommon/hid/structs"
)
//go:embed generated.bin
@ -14,7 +14,7 @@ func init() {
minxdr.Unmarshal(bytes.NewReader(file), &Mappings)
}
var Mappings KeyMaps = structs.KeyMaps{}
var Mappings := structs.KeyMaps{}
func GetMappingFromHID(uv uint16) structs.Key {
return Mappings.Usb[uv]

Loading…
Cancel
Save