From 32a79260f00692de416207e68eee44245a6654d0 Mon Sep 17 00:00:00 2001 From: Fabian Wickborn Date: Mon, 7 May 2018 20:44:31 +0200 Subject: [PATCH] examples: correct events used by XBox360 joystick example Commit 3c4c15b6d998a5784242ef7b510692b9f89d8256 changed the symbol names for the joystick events. This commit tracks this change for the example for the Xbox360 controller. Signed-off-by: Fabian Wickborn --- examples/joystick_xbox360.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/joystick_xbox360.go b/examples/joystick_xbox360.go index a81697254..bf94a90b5 100644 --- a/examples/joystick_xbox360.go +++ b/examples/joystick_xbox360.go @@ -28,16 +28,16 @@ func main() { stick.On(joystick.BRelease, func(data interface{}) { fmt.Println("b_release") }) - stick.On(joystick.Up, func(data interface{}) { + stick.On(joystick.UpPress, func(data interface{}) { fmt.Println("up", data) }) - stick.On(joystick.Down, func(data interface{}) { + stick.On(joystick.DownPress, func(data interface{}) { fmt.Println("down", data) }) - stick.On(joystick.Left, func(data interface{}) { + stick.On(joystick.LeftPress, func(data interface{}) { fmt.Println("left", data) }) - stick.On(joystick.Right, func(data interface{}) { + stick.On(joystick.RightPress, func(data interface{}) { fmt.Println("right", data) }) stick.On(joystick.LeftX, func(data interface{}) {