Add tests for RuleTargetAxis.
This commit is contained in:
parent
8f3b8f4b47
commit
6646044d28
8 changed files with 164 additions and 9 deletions
|
@ -23,5 +23,6 @@ func (rule *MappingRuleAxis) MatchEvent(device *evdev.InputDevice, event *evdev.
|
|||
return nil, nil
|
||||
}
|
||||
|
||||
return rule.Output.Device, rule.Output.CreateEvent(rule.Input.NormalizeValue(event.Value), mode)
|
||||
// The cast here is safe because the interface is only ever different for unit tests
|
||||
return rule.Output.Device.(*evdev.InputDevice), rule.Output.CreateEvent(rule.Input.NormalizeValue(event.Value), mode)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue