Skip to content

Commit

Permalink
Revert "driver: Increase gamepad buttons to 64"
Browse files Browse the repository at this point in the history
This reverts commit 62b199f.

Reason: This seems my misunderstanding.
  • Loading branch information
hajimehoshi committed Dec 28, 2020
1 parent 8838366 commit 2ea360b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 66 deletions.
34 changes: 1 addition & 33 deletions gamepad.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,37 +55,5 @@ const (
GamepadButton29 GamepadButton = GamepadButton(driver.GamepadButton29)
GamepadButton30 GamepadButton = GamepadButton(driver.GamepadButton30)
GamepadButton31 GamepadButton = GamepadButton(driver.GamepadButton31)
GamepadButton32 GamepadButton = GamepadButton(driver.GamepadButton32)
GamepadButton33 GamepadButton = GamepadButton(driver.GamepadButton33)
GamepadButton34 GamepadButton = GamepadButton(driver.GamepadButton34)
GamepadButton35 GamepadButton = GamepadButton(driver.GamepadButton35)
GamepadButton36 GamepadButton = GamepadButton(driver.GamepadButton36)
GamepadButton37 GamepadButton = GamepadButton(driver.GamepadButton37)
GamepadButton38 GamepadButton = GamepadButton(driver.GamepadButton38)
GamepadButton39 GamepadButton = GamepadButton(driver.GamepadButton39)
GamepadButton40 GamepadButton = GamepadButton(driver.GamepadButton40)
GamepadButton41 GamepadButton = GamepadButton(driver.GamepadButton41)
GamepadButton42 GamepadButton = GamepadButton(driver.GamepadButton42)
GamepadButton43 GamepadButton = GamepadButton(driver.GamepadButton43)
GamepadButton44 GamepadButton = GamepadButton(driver.GamepadButton44)
GamepadButton45 GamepadButton = GamepadButton(driver.GamepadButton45)
GamepadButton46 GamepadButton = GamepadButton(driver.GamepadButton46)
GamepadButton47 GamepadButton = GamepadButton(driver.GamepadButton47)
GamepadButton48 GamepadButton = GamepadButton(driver.GamepadButton48)
GamepadButton49 GamepadButton = GamepadButton(driver.GamepadButton49)
GamepadButton50 GamepadButton = GamepadButton(driver.GamepadButton50)
GamepadButton51 GamepadButton = GamepadButton(driver.GamepadButton51)
GamepadButton52 GamepadButton = GamepadButton(driver.GamepadButton52)
GamepadButton53 GamepadButton = GamepadButton(driver.GamepadButton53)
GamepadButton54 GamepadButton = GamepadButton(driver.GamepadButton54)
GamepadButton55 GamepadButton = GamepadButton(driver.GamepadButton55)
GamepadButton56 GamepadButton = GamepadButton(driver.GamepadButton56)
GamepadButton57 GamepadButton = GamepadButton(driver.GamepadButton57)
GamepadButton58 GamepadButton = GamepadButton(driver.GamepadButton58)
GamepadButton59 GamepadButton = GamepadButton(driver.GamepadButton49)
GamepadButton60 GamepadButton = GamepadButton(driver.GamepadButton60)
GamepadButton61 GamepadButton = GamepadButton(driver.GamepadButton61)
GamepadButton62 GamepadButton = GamepadButton(driver.GamepadButton62)
GamepadButton63 GamepadButton = GamepadButton(driver.GamepadButton63)
GamepadButtonMax GamepadButton = GamepadButton63
GamepadButtonMax GamepadButton = GamepadButton31
)
34 changes: 1 addition & 33 deletions internal/driver/gamepadbutton.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,38 +49,6 @@ const (
GamepadButton29
GamepadButton30
GamepadButton31
GamepadButton32
GamepadButton33
GamepadButton34
GamepadButton35
GamepadButton36
GamepadButton37
GamepadButton38
GamepadButton39
GamepadButton40
GamepadButton41
GamepadButton42
GamepadButton43
GamepadButton44
GamepadButton45
GamepadButton46
GamepadButton47
GamepadButton48
GamepadButton49
GamepadButton50
GamepadButton51
GamepadButton52
GamepadButton53
GamepadButton54
GamepadButton55
GamepadButton56
GamepadButton57
GamepadButton58
GamepadButton59
GamepadButton60
GamepadButton61
GamepadButton62
GamepadButton63
)

const GamepadButtonNum = 64
const GamepadButtonNum = 32

0 comments on commit 2ea360b

Please sign in to comment.