Refactor logging and start adding rule matching code.
This commit is contained in:
parent
8549f36c8f
commit
33837895d9
4 changed files with 92 additions and 22 deletions
10
internal/rules/types.go
Normal file
10
internal/rules/types.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package rules
|
||||
|
||||
import "github.com/holoplot/go-evdev"
|
||||
|
||||
type RuleTarget struct {
|
||||
Device *evdev.InputDevice
|
||||
Type evdev.EvType
|
||||
Code evdev.EvCode
|
||||
Inverted bool
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue