mirror of https://github.com/OrbTools/OrbCommon
ALL: Compartimentalize
parent
bf3e628ad2
commit
3a6c62e241
@ -0,0 +1,37 @@
|
|||||||
|
package structs
|
||||||
|
|
||||||
|
//KeyMap singular keymap
|
||||||
|
type KeyMap struct {
|
||||||
|
Device string
|
||||||
|
Keymap []uint16
|
||||||
|
Color []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
|
||||||
|
NumColor int
|
||||||
|
Binding []byte
|
||||||
|
Device struct {
|
||||||
|
SystemFile string
|
||||||
|
VendorID int
|
||||||
|
ProdID int
|
||||||
|
}
|
||||||
|
GuiPages []struct {
|
||||||
|
Name string
|
||||||
|
Type string
|
||||||
|
Keys []struct {
|
||||||
|
KeyID int
|
||||||
|
KeyName string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,20 @@
|
|||||||
|
package structs
|
||||||
|
|
||||||
|
type KeyMaps struct {
|
||||||
|
Usb map[uint16]Key
|
||||||
|
Evdev map[uint16]Key
|
||||||
|
Xkb map[uint16]Key
|
||||||
|
Win map[uint16]Key
|
||||||
|
Mac map[uint16]Key
|
||||||
|
Code map[string]Key
|
||||||
|
Arr []Key
|
||||||
|
}
|
||||||
|
|
||||||
|
type Key struct {
|
||||||
|
Usb uint16
|
||||||
|
Evdev uint16
|
||||||
|
Xkb uint16
|
||||||
|
Win uint16
|
||||||
|
Mac uint16
|
||||||
|
Code string
|
||||||
|
}
|
Loading…
Reference in New Issue