Skip to content

Commit

Permalink
Revert "joystick: add missing type conversion"
Browse files Browse the repository at this point in the history
This reverts commit 0fd6cf4.
  • Loading branch information
toffentoffen committed May 7, 2018
1 parent f661393 commit 43be66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/joystick/bin/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func run() int {
t.Timestamp, t.Hat, t.Value)
case *sdl.JoyDeviceEvent:
if t.Type == sdl.JOYDEVICEADDED {
joysticks[int(t.Which)] = sdl.JoystickOpen(int(t.Which))
joysticks[int(t.Which)] = sdl.JoystickOpen(t.Which)
if joysticks[int(t.Which)] != nil {
fmt.Printf("Joystick %d connected\n", t.Which)
}
Expand Down

0 comments on commit 43be66e

Please sign in to comment.