uqm icon indicating copy to clipboard operation
uqm copied to clipboard

Sleep game when hidden / unfocused?

Open davidben opened this issue 13 years ago • 0 comments

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.

davidben avatar Mar 25 '12 03:03 davidben