Focus lost (SOLVED)

Hello, I feel, I ask to many questions, sorry if this is too often :slight_smile:

So my new question is, how to register lost of focus on game window when game is running on PC or in browser?
Maybe is it any unified way to do that?

1 Like

Listen for a window.WINDOW_EVENT_FOCUS_LOST event.

More info here:
https://defold.com/ref/stable/window/#window.set_listener:callback

5 Likes