You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be helpful if engine.inputs.gamepad supported wasPressed and wasHeld the same way engine.inputs.keyboard does. This would make it easier to interchangeably support keyboard or gamepad input.
Proposal
Add wasPressed(button) and wasReleased(button) to gamepad input API. Perhaps rename isButtonPressed() to isButtonHeld() to closer match keyboard API (isKeyHeld())
The text was updated successfully, but these errors were encountered:
Context
It would be helpful if
engine.inputs.gamepad
supportedwasPressed
andwasHeld
the same wayengine.inputs.keyboard
does. This would make it easier to interchangeably support keyboard or gamepad input.Proposal
Add
wasPressed(button)
andwasReleased(button)
to gamepad input API. Perhaps renameisButtonPressed()
toisButtonHeld()
to closer match keyboard API (isKeyHeld()
)The text was updated successfully, but these errors were encountered: