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.
34 lines
434 B
Go
34 lines
434 B
Go
package gui
|
|
|
|
//PageType PGrid, PCircle or PList
|
|
type PageType int
|
|
|
|
const (
|
|
//PGrid Grid type (keypads)
|
|
PGrid PageType = iota
|
|
//PCircle type (joysticks)
|
|
PCircle
|
|
//PList List Type
|
|
PList
|
|
)
|
|
|
|
//GUI a GUI tree
|
|
type GUI struct {
|
|
Pages []*Page
|
|
}
|
|
|
|
//Page A page of a binding GUI
|
|
type Page struct {
|
|
Hive string
|
|
Name string
|
|
Keys []*Key
|
|
Type PageType
|
|
}
|
|
|
|
//Key a keybind
|
|
type Key struct {
|
|
KeyID int
|
|
KeyName string
|
|
Default uint16
|
|
}
|