Add submit inputs on gamepad.

Previously, only the touchpad on ps4 would act as hitting return/enter on keyboard, locking xinput gamepads out of doing so.
This commit is contained in:
Chacolay 2024-04-28 19:14:36 -04:00
parent b43a6ec764
commit 762b3bff61

View File

@ -214,7 +214,7 @@ export default class BattleScene extends SceneBase {
[Button.DOWN]: 13, // down
[Button.LEFT]: 14, // left
[Button.RIGHT]: 15, // right
[Button.SUBMIT]: 17, // touchpad
[Button.SUBMIT]: [17, 8] // touchpad (ps4) back button (xbox ps4/5)
[Button.ACTION]: 0, // X
[Button.CANCEL]: 1, // O
[Button.MENU]: 9, // options