Skip to content

Commit

Permalink
examples: correct events used by XBox360 joystick example
Browse files Browse the repository at this point in the history
Commit 3c4c15b 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 <[email protected]>
  • Loading branch information
fawick committed May 7, 2018
1 parent b2ddfe7 commit 32a7926
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/joystick_xbox360.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}) {
Expand Down

0 comments on commit 32a7926

Please sign in to comment.