Reviewed-on: #19 Co-authored-by: Anna Rose Wiggins <annabunches@gmail.com> Co-committed-by: Anna Rose Wiggins <annabunches@gmail.com>
33 lines
708 B
Go
33 lines
708 B
Go
package configparser
|
|
|
|
type RuleTargetConfigButton struct {
|
|
Device string
|
|
Button string
|
|
Inverted bool
|
|
}
|
|
|
|
type RuleTargetConfigAxis struct {
|
|
Device string
|
|
Axis string
|
|
Inverted bool
|
|
Deadzones []DeadzoneConfig
|
|
}
|
|
|
|
type DeadzoneConfig struct {
|
|
Center int32 `yaml:"center,omitempty"`
|
|
Size int32 `yaml:"size,omitempty"`
|
|
SizePercent int32 `yaml:"size_percent,omitempty"`
|
|
Start int32 `yaml:"start,omitempty"`
|
|
End int32 `yaml:"end,omitempty"`
|
|
Emit bool `yaml:"emit,omitempty"`
|
|
Value int32 `yaml:"emit_value,omitempty"`
|
|
}
|
|
|
|
type RuleTargetConfigRelaxis struct {
|
|
Device string
|
|
Axis string
|
|
}
|
|
|
|
type RuleTargetConfigModeSelect struct {
|
|
Modes []string
|
|
}
|