Get if navigation button was pressed from gamepad or keyboard * @return {boolean}
()
| 596 | /** Get if navigation button was pressed from gamepad or keyboard |
| 597 | * @return {boolean} */ |
| 598 | getNavigationWasPressed() |
| 599 | { |
| 600 | return isUsingGamepad ? gamepadWasPressed(0, gamepadPrimary) : |
| 601 | keyWasPressed('Space') || keyWasPressed('Enter'); |
| 602 | } |
| 603 | |
| 604 | /** Show a confirmation dialog with Yes/No buttons |
| 605 | * Centers the dialog on the screen with darkened background |
no test coverage detected