-
-
Notifications
You must be signed in to change notification settings - Fork 18
window_has_focus
drewmccluskey edited this page Feb 12, 2019
·
3 revisions
Returns if the window is focused
window_has_focus()
Returns: bool
Returns if the window is focused (in view), can be used for pausing the game when minimizing the window.
bool focus = window_has_focus();
show_debug_message(focus.ToString());
The above code will check if the window is focused or not. The result is saved to bool
focus and then displayed as a debug pop-up message.
Back to window-functions