Switch input device

This commit is contained in:
Torjus Håkestad 2024-06-03 03:53:06 +02:00
parent 1dc02bd21b
commit 160554e8a4

View File

@ -33,7 +33,7 @@ func main() {
defer mbus.Close() defer mbus.Close()
// Start reading input events // 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 { if err != nil {
panic(err) panic(err)
} }