Add support for Joystick hats.
This commit is contained in:
parent
62befa045a
commit
fce8888c77
8 changed files with 134 additions and 13 deletions
|
|
@ -31,3 +31,9 @@ type RuleTargetConfigRelaxis struct {
|
|||
type RuleTargetConfigModeSelect struct {
|
||||
Modes []string
|
||||
}
|
||||
|
||||
type RuleTargetConfigHat struct {
|
||||
Device string
|
||||
Hat string
|
||||
Inverted bool
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,6 +40,11 @@ type RuleConfigAxis struct {
|
|||
Output RuleTargetConfigAxis
|
||||
}
|
||||
|
||||
type RuleConfigHat struct {
|
||||
Input RuleTargetConfigHat
|
||||
Output RuleTargetConfigHat
|
||||
}
|
||||
|
||||
type RuleConfigAxisCombined struct {
|
||||
InputLower RuleTargetConfigAxis `yaml:"input_lower,omitempty"`
|
||||
InputUpper RuleTargetConfigAxis `yaml:"input_upper,omitempty"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue