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