77ed2ccfb1
* update pxt.json files * Fix button event enums fixes https://github.com/microsoft/pxt-calliope/issues/206 * Fix Safari CSS Rule for iOS app fixes https://github.com/microsoft/pxt-calliope/issues/205 * aprove preffered repos should fix https://github.com/microsoft/pxt-calliope/issues/167
514 B
514 B
is Paused
Find out if the game is paused or not.
game.isPaused()
Returns
- a boolean value that is
true
if the game is paused orfalse
if not.
Example
Resume the game if it's paused and button B is pressed.
input.onButtonEvent(Button.B, input.buttonEventValue(ButtonEvent.Down), function () {
if (game.isPaused()) {
game.resume()
}
})