Hello, I feel, I ask to many questions, sorry if this is too often
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?
Hello, I feel, I ask to many questions, sorry if this is too often
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?
Listen for a window.WINDOW_EVENT_FOCUS_LOST event.
More info here:
https://defold.com/ref/stable/window/#window.set_listener:callback