Switch input device
This commit is contained in:
parent
1dc02bd21b
commit
160554e8a4
2
main.go
2
main.go
@ -33,7 +33,7 @@ func main() {
|
||||
defer mbus.Close()
|
||||
|
||||
// Start reading input events
|
||||
input, err := evdev.OpenWithFlags("/dev/input/event1", os.O_RDONLY)
|
||||
input, err := evdev.OpenWithFlags("/dev/input/by-id/usb-SteelSeries_SteelSeries_Rival_710_Gaming_Mouse-if02-event-kbd", os.O_RDONLY)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user