I have a question regarding your game. Do you just use Timers to
On Jul 20, 10:13 am, "Fred Sauer" <
f...@allen-sauer.com> wrote:
> Dawson,
>
> The interpretation is that only one element can be focused at a time. Right
> after the window gains focus, it is lost again to an element on your page.
> If you can track focus on elements on your page, then you can distinguish
> real window blurs from blurs lost to element focus.
>
> I wrote a game, Hornet Blast, which I wanted to pause when the window
> blurred, and resume when it gained focus. I offer it up because you can test
> the automatic gaming pausing functionality in your target browsers and
> confirm that the principals work. Start the game, then give another window
> focus to pause the game. Simply ALT-TAB (or your platform equivalent) back
> to the game window to have the game resume. Here's the URL.
>