mirror of https://github.com/OrbTools/OrbCommon
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
548 B
Go
38 lines
548 B
Go
package devices
|
|
|
|
//KeyMap singular keymap
|
|
type KeyMap struct {
|
|
Keymap []uint16
|
|
Color [3]byte
|
|
}
|
|
|
|
//KeyMaps a set of keymaps
|
|
type KeyMaps struct {
|
|
Maps []*KeyMap
|
|
Currentmap int
|
|
MCount int
|
|
}
|
|
|
|
type DeviceDef struct {
|
|
Backend string
|
|
IsColor bool
|
|
MaxMappings int
|
|
NumKeys int
|
|
Binding []byte
|
|
Device struct {
|
|
SystemFile string
|
|
VendorID int
|
|
ProdID int
|
|
}
|
|
GuiPages []struct {
|
|
Name string
|
|
Type string
|
|
Keys []struct {
|
|
KeyID int
|
|
KeyName string
|
|
}
|
|
}
|
|
}
|
|
|
|
var DeviceTypes map[string]*DeviceDef
|