showMobileControls
Changes the mobile controls visible beneath the play space.
Syntax
showMobileControls(spaceButtonVisible, dpadVisible, dpadFourWay, mobileOnly)
Parameters
Name | Type | Required? | Description |
---|---|---|---|
spaceButtonVisible | Boolean | Indicates whether the space button should be visible. | |
dpadVisible | Boolean | ||
dpadFourWay | Boolean | Indicates whether the controls for only the four cardinal directions should be visible. | |
mobileOnly | Boolean | Indicates whether the controls should appear on mobile devices only ( |
Found a bug in the documentation? Let us know at support@code.org.