Skip to content

Commit

Permalink
joystick: add missing type conversion
Browse files Browse the repository at this point in the history
Signed-off-by: morfeo8marc <[email protected]>
  • Loading branch information
toffentoffen committed May 7, 2018
1 parent 846e992 commit 0fd6cf4
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(t.Which)
joysticks[int(t.Which)] = sdl.JoystickOpen(int(t.Which))
if joysticks[int(t.Which)] != nil {
fmt.Printf("Joystick %d connected\n", t.Which)
}
Expand Down

0 comments on commit 0fd6cf4

Please sign in to comment.