Implement config file parsing for physical devices.

This commit is contained in:
Anna Rose Wiggins 2025-07-01 13:23:21 -04:00
parent faa51bdda2
commit 5b3b70da14
3 changed files with 38 additions and 22 deletions

View file

@ -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 {