You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The short description of the two events doesn't give more information :
WINDOWFOCUSGAINED Window gained focus
WINDOWTAKEFOCUS Window was offered focus
And the word TAKE give "was offered" ?
What does it mean ?
The text was updated successfully, but these errors were encountered:
mentat51
changed the title
Documentation need to describe the difference between WINDOWFOCUSGAINED and WINDOWTAKEFOCUS
Documentation need to explain the difference between WINDOWFOCUSGAINED and WINDOWTAKEFOCUS
Dec 5, 2024
Accroding to the comments in SDL_video.h of SDL2.30.9:
typedefenum
{
...
SDL_WINDOWEVENT_FOCUS_GAINED, /**< Window has gained keyboard focus */
...
SDL_WINDOWEVENT_TAKE_FOCUS, /**< Window is being offered a focus (should SetWindowInputFocus() on itself or a subwindow, or ignore) */
...
} SDL_WindowEventID;
Accroding to the comments in SDL_events.h of SDL3.1.6:
The short description of the two events doesn't give more information :
WINDOWFOCUSGAINED Window gained focus
WINDOWTAKEFOCUS Window was offered focus
And the word TAKE give "was offered" ?
What does it mean ?
The text was updated successfully, but these errors were encountered: