Unverified Commit ed49d2af authored by simon place's avatar simon place Committed by GitHub
Browse files

Update README.md

more tidy
parent 43daa976
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -22,14 +22,12 @@ Overview/docs: [![GoDoc](https://godoc.org/github.com/splace/joysticks?status.sv

### highlevel 

automates Connect, device event chan creation and Parcelling out events 

automates Connection to an available device, event chan creation and parcelling out those events 

```` Go
// block until button one pressed.
package main


import . "github.com/splace/joysticks"

func main() {
@@ -45,7 +43,7 @@ func main() {
allows device interrogation and event re-assigning.

```` Go
// log description of events when pressing button #1 or moving hat#1. 
// log a description of events when pressing button #1 or moving hat#1. 
// 10sec timeout.
package main

@@ -55,7 +53,8 @@ import "time"

func main() {
	// try connecting to specific controller.
	// system assigned index: typically increments on each new controller added.
	// the index is system assigned, typically it increments on each new controller added.
	// indexes remain fixed for a given controller, if/when other controller(s) are removed.
	device := Connect(1)

	if device == nil {