input: Extend number of gamepad buttons from 16 to 32 (for PS4)

This commit is contained in:
Hajime Hoshi 2017-02-25 22:49:06 +09:00
parent bc29a6a355
commit ae378dc7f5
2 changed files with 33 additions and 1 deletions

View File

@ -39,5 +39,21 @@ const (
GamepadButton13 = GamepadButton(ui.GamepadButton13)
GamepadButton14 = GamepadButton(ui.GamepadButton14)
GamepadButton15 = GamepadButton(ui.GamepadButton15)
GamepadButtonMax = GamepadButton15
GamepadButton16 = GamepadButton(ui.GamepadButton16)
GamepadButton17 = GamepadButton(ui.GamepadButton17)
GamepadButton18 = GamepadButton(ui.GamepadButton18)
GamepadButton19 = GamepadButton(ui.GamepadButton19)
GamepadButton20 = GamepadButton(ui.GamepadButton20)
GamepadButton21 = GamepadButton(ui.GamepadButton21)
GamepadButton22 = GamepadButton(ui.GamepadButton22)
GamepadButton23 = GamepadButton(ui.GamepadButton23)
GamepadButton24 = GamepadButton(ui.GamepadButton24)
GamepadButton25 = GamepadButton(ui.GamepadButton25)
GamepadButton26 = GamepadButton(ui.GamepadButton26)
GamepadButton27 = GamepadButton(ui.GamepadButton27)
GamepadButton28 = GamepadButton(ui.GamepadButton28)
GamepadButton29 = GamepadButton(ui.GamepadButton29)
GamepadButton30 = GamepadButton(ui.GamepadButton30)
GamepadButton31 = GamepadButton(ui.GamepadButton31)
GamepadButtonMax = GamepadButton31
)

View File

@ -33,4 +33,20 @@ const (
GamepadButton13
GamepadButton14
GamepadButton15
GamepadButton16
GamepadButton17
GamepadButton18
GamepadButton19
GamepadButton20
GamepadButton21
GamepadButton22
GamepadButton23
GamepadButton24
GamepadButton25
GamepadButton26
GamepadButton27
GamepadButton28
GamepadButton29
GamepadButton30
GamepadButton31
)