Commit 8bd01f0d authored by simon's avatar simon
Browse files

comment

parent 424b00e5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ highlevel: block until button one pressed.

	func main() {
		evts := Capture(
			Channel{1, HID.OnClose},  // event[0] chan set to receive button #1 closes events
			Channel{1, HID.OnClose},  // chan index#0 set to receive button #1 closes events
		)
		<-evts[0]
	}
+3 −3
Original line number Diff line number Diff line
@@ -3,9 +3,9 @@ package main
import . "github.com/splace/joysticks"

func main() {
	events := Capture(
		Channel{1, HID.OnClose},  // event[0] is button #1 closes
	evts := Capture(
		Channel{1, HID.OnClose},  // event[0] chan set to receive button #1 closes events
	)
	<-events[0]
	<-evts[0]
}