Rename mapping rules for consistent prefix.

This commit is contained in:
Anna Rose Wiggins 2025-07-04 23:47:25 -04:00
parent 80bfdfde90
commit 7ef62cbdc7
6 changed files with 21 additions and 21 deletions

View file

@ -11,26 +11,26 @@ type MappingRuleBase struct {
}
// A Simple Mapping Rule can map a button to a button or an axis to an axis.
type SimpleMappingRule struct {
type MappingRuleSimple struct {
MappingRuleBase
Input RuleTarget
}
// A Combo Mapping Rule can require multiple physical button presses for a single output button
type ComboMappingRule struct {
type MappingRuleCombo struct {
MappingRuleBase
Inputs []RuleTarget
State int
}
type LatchedMappingRule struct {
type MappingRuleLatched struct {
MappingRuleBase
Input RuleTarget
State bool
}
// TODO: How are we going to implement this? It needs to operate on a timer...
type ProportionalAxisMappingRule struct {
type MappingRuleProportionalAxis struct {
MappingRuleBase
Input RuleTarget
Output RuleTarget