Implement config file parsing for physical devices.
This commit is contained in:
parent
faa51bdda2
commit
5b3b70da14
3 changed files with 38 additions and 22 deletions
|
@ -11,11 +11,12 @@ type Config struct {
|
|||
}
|
||||
|
||||
type DeviceConfig struct {
|
||||
Name string `yaml:"name"`
|
||||
Type string `yaml:"type"`
|
||||
Uuid string `yaml:"uuid,omitempty"`
|
||||
Buttons int `yaml:"buttons,omitempty"`
|
||||
Axes int `yaml:"axes,omitempty"`
|
||||
Name string `yaml:"name"`
|
||||
Type string `yaml:"type"`
|
||||
DeviceName string `yaml:"device_name,omitempty"`
|
||||
Uuid string `yaml:"uuid,omitempty"`
|
||||
Buttons int `yaml:"buttons,omitempty"`
|
||||
Axes int `yaml:"axes,omitempty"`
|
||||
}
|
||||
|
||||
type RuleConfig struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue