Copyright (C) 2000-2012 |
Manpages SDL_ActiveEventSection: SDL API Reference (3)Updated: Tue 11 Sep 2001, 22:59 Index Return to Main Contents NAMESDL_ActiveEvent- Application visibility event structureSTRUCTURE DEFINITION
typedef struct{ Uint8 type; Uint8 gain; Uint8 state; } SDL_ActiveEvent; STRUCTURE DATA
DESCRIPTIONSDL_ActiveEvent is a member of the SDL_Event union and is used when an event of type SDL_ACTIVEEVENT is reported. When the mouse leaves or enters the window area a SDL_APPMOUSEFOCUS type activation event occurs, if the mouse entered the window then gain will be 1, otherwise gain will be 0. A SDL_APPINPUTFOCUS type activation event occurs when the application loses or gains keyboard focus. This usually occurs when another application is made active. Finally, a SDL_APPACTIVE type event occurs when the application is either minimised/iconified (gain=0) or restored.
SEE ALSOSDL_Event, SDL_GetAppState
IndexThis document was created by man2html, using the manual pages. Time: 12:29:35 GMT, April 23, 2024 |