Jump to content

onLoseFocus(), onGetFocus() events?


farmerdwightks
 Share

Recommended Posts

Is there some way to be notified that the game window has lost/regained its focus so that it can pause and unpause certain features of the game?  Specifically, I have a timer that is based on the current time minus a start time so I need to update the new start time when the window is in focus again.  I also, want to pause background music from playing.  The sound automatically stops playing audibly but the music is still progressing silently.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...