uqm
uqm copied to clipboard
Sleep game when hidden / unfocused?
Unclear exactly when (or if) the game should be paused, but there is (disabled) code in the game for this, and a number of possible interpretations:
- WebKit focus (DidChangeFocus). Probably not what we want.
- Page visibility API. Requires JavaScript plumbing. Future PPAPI may put it in DidChangeView apparently?
- Element focus. Use focus event listeners. Aware of OS focus. Should help fix keyup stuff.