From 2c4a9ff03b6da749f2e3bbc572740897356e180b Mon Sep 17 00:00:00 2001 From: Dushyant M Date: Wed, 20 Jan 2021 18:18:43 +0700 Subject: [PATCH] Fixed a minor variable in the example The line in the code for Read() should be `js.Read()` instead of `joystick.Read()` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9bbb25c..907b1d0 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ fmt.Printf("Joystick Name: %s", js.Name()) fmt.Printf(" Axis Count: %d", js.AxisCount()) fmt.Printf(" Button Count: %d", js.ButtonCount()) -state, err := joystick.Read() +state, err := js.Read() if err != nil { panic(err) }