mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
driver: Increase gamepad buttons to 64
e.g. Nintendo Switch controller can have more than 32 buttons.
This commit is contained in:
parent
bb20c9719e
commit
62b199f9eb
34
gamepad.go
34
gamepad.go
@ -55,5 +55,37 @@ const (
|
|||||||
GamepadButton29 GamepadButton = GamepadButton(driver.GamepadButton29)
|
GamepadButton29 GamepadButton = GamepadButton(driver.GamepadButton29)
|
||||||
GamepadButton30 GamepadButton = GamepadButton(driver.GamepadButton30)
|
GamepadButton30 GamepadButton = GamepadButton(driver.GamepadButton30)
|
||||||
GamepadButton31 GamepadButton = GamepadButton(driver.GamepadButton31)
|
GamepadButton31 GamepadButton = GamepadButton(driver.GamepadButton31)
|
||||||
GamepadButtonMax GamepadButton = 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
|
||||||
)
|
)
|
||||||
|
@ -49,6 +49,38 @@ const (
|
|||||||
GamepadButton29
|
GamepadButton29
|
||||||
GamepadButton30
|
GamepadButton30
|
||||||
GamepadButton31
|
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 = 32
|
const GamepadButtonNum = 64
|
||||||
|
Loading…
Reference in New Issue
Block a user