Read events from multiple devices.

This commit is contained in:
Anna Rose Wiggins 2025-07-02 17:01:17 -04:00
parent a5b59bf39e
commit a078dcb193
4 changed files with 59 additions and 31 deletions

View file

@ -4,6 +4,7 @@ import "github.com/holoplot/go-evdev"
type MappingRule interface {
MatchEvent(*evdev.InputDevice, *evdev.InputEvent) *evdev.InputEvent
OutputName() string
}
// A Simple Mapping Rule can map a button to a button or an axis to an axis.
@ -22,8 +23,9 @@ type ComboMappingRule struct {
}
type RuleTarget struct {
Device *evdev.InputDevice
Type evdev.EvType
Code evdev.EvCode
Inverted bool
DeviceName string
Device *evdev.InputDevice
Type evdev.EvType
Code evdev.EvCode
Inverted bool
}