Skip to content

Commit

Permalink
Merge pull request hybridgroup#522 from fawick/master
Browse files Browse the repository at this point in the history
examples: correct events used by XBox360 joystick example
  • Loading branch information
deadprogram authored May 7, 2018
2 parents acb0493 + 32a7926 commit 846e992
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 846e992

Please sign in to comment.