From 8b565f94c6d3bebba699bed1b9e995982bcaec54 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 3 Sep 2016 15:05:55 +0900 Subject: [PATCH] input: Bug fix: GamepadButtonN must be GamepadButton type --- gamepad.go | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/gamepad.go b/gamepad.go index bf29b6a75..c351b6785 100644 --- a/gamepad.go +++ b/gamepad.go @@ -23,20 +23,20 @@ type GamepadButton int // GamepadButtons const ( - GamepadButton0 = GamepadButton(ui.GamepadButton0) - GamepadButton1 = GamepadButton(ui.GamepadButton1) - GamepadButton2 = GamepadButton(ui.GamepadButton2) - GamepadButton3 = GamepadButton(ui.GamepadButton3) - GamepadButton4 = GamepadButton(ui.GamepadButton4) - GamepadButton5 = GamepadButton(ui.GamepadButton5) - GamepadButton6 = GamepadButton(ui.GamepadButton6) - GamepadButton7 = GamepadButton(ui.GamepadButton7) - GamepadButton8 = GamepadButton(ui.GamepadButton8) - GamepadButton9 = GamepadButton(ui.GamepadButton9) - GamepadButton10 = GamepadButton(ui.GamepadButton10) - GamepadButton11 = GamepadButton(ui.GamepadButton11) - GamepadButton12 = GamepadButton(ui.GamepadButton12) - GamepadButton13 = GamepadButton(ui.GamepadButton13) - GamepadButton14 = GamepadButton(ui.GamepadButton14) - GamepadButton15 = GamepadButton(ui.GamepadButton15) + GamepadButton0 GamepadButton = GamepadButton(ui.GamepadButton0) + GamepadButton1 = GamepadButton(ui.GamepadButton1) + GamepadButton2 = GamepadButton(ui.GamepadButton2) + GamepadButton3 = GamepadButton(ui.GamepadButton3) + GamepadButton4 = GamepadButton(ui.GamepadButton4) + GamepadButton5 = GamepadButton(ui.GamepadButton5) + GamepadButton6 = GamepadButton(ui.GamepadButton6) + GamepadButton7 = GamepadButton(ui.GamepadButton7) + GamepadButton8 = GamepadButton(ui.GamepadButton8) + GamepadButton9 = GamepadButton(ui.GamepadButton9) + GamepadButton10 = GamepadButton(ui.GamepadButton10) + GamepadButton11 = GamepadButton(ui.GamepadButton11) + GamepadButton12 = GamepadButton(ui.GamepadButton12) + GamepadButton13 = GamepadButton(ui.GamepadButton13) + GamepadButton14 = GamepadButton(ui.GamepadButton14) + GamepadButton15 = GamepadButton(ui.GamepadButton15) )