hid: fix?

main
Minizbot2012 2 years ago
parent 5b60a9e6b7
commit 09ba44e13b
No known key found for this signature in database
GPG Key ID: 977C8ADE12361917

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