From 43be66e02d1888baf6c3cf52d270ac1f0cb89ed4 Mon Sep 17 00:00:00 2001 From: morfeo8marc Date: Tue, 8 May 2018 00:41:50 +0200 Subject: [PATCH] Revert "joystick: add missing type conversion" This reverts commit 0fd6cf480a6b08649a4691585d7b0fbc8e16ed5e. --- platforms/joystick/bin/scanner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/joystick/bin/scanner.go b/platforms/joystick/bin/scanner.go index e84627457..6f42ea845 100644 --- a/platforms/joystick/bin/scanner.go +++ b/platforms/joystick/bin/scanner.go @@ -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) }