Support for pause/resume of game rendering loop (#476)

* added pause/resume

* don't override displaymode in game engine

* avoid setting light sensing display mode
This commit is contained in:
Peli de Halleux
2017-08-01 08:17:53 -07:00
committed by GitHub
parent 6a215478b0
commit 74799c65ac
9 changed files with 111 additions and 28 deletions

View File

@ -305,6 +305,10 @@ namespace pxsim.led {
runtime.queueDisplayUpdate()
}
export function displayMode(): DisplayMode {
return board().ledMatrixState.displayMode;
}
export function screenshot(): Image {
let img = createImage(5)
board().ledMatrixState.image.copyTo(0, 5, img, 0);