Start implementing timer logic for proportional axis checking.
This commit is contained in:
parent
bf1bb868e5
commit
4c76ad4f49
2 changed files with 34 additions and 0 deletions
|
@ -136,3 +136,15 @@ func (rule *LatchedMappingRule) MatchEvent(device *evdev.InputDevice, event *evd
|
|||
|
||||
return eventFromTarget(rule.Output, value, mode)
|
||||
}
|
||||
|
||||
func (rule *ProportionalAxisMappingRule) MatchEvent(device *evdev.InputDevice, event *evdev.InputEvent, mode *string) *evdev.InputEvent {
|
||||
// STUB
|
||||
return nil
|
||||
}
|
||||
|
||||
// TimerEvent returns an event when enough time has passed (compared to the last recorded axis value)
|
||||
// to emit an event.
|
||||
func (rule *ProportionalAxisMappingRule) TimerEvent() *evdev.InputEvent {
|
||||
// STUB
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue