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

@ -75,7 +75,7 @@ func main() {
timerCount := 0
for _, rule := range rules {
if timedRule, ok := rule.(*mappingrules.ProportionalAxisMappingRule); ok {
if timedRule, ok := rule.(*mappingrules.MappingRuleProportionalAxis); ok {
go timerWatcher(timedRule, eventChannel)
timerCount++
}

View file

@ -28,7 +28,7 @@ func eventWatcher(device *evdev.InputDevice, channel chan<- ChannelEvent) {
}
}
func timerWatcher(rule *mappingrules.ProportionalAxisMappingRule, channel chan<- ChannelEvent) {
func timerWatcher(rule *mappingrules.MappingRuleProportionalAxis, channel chan<- ChannelEvent) {
for {
event := rule.TimerEvent()
if event != nil {