SDL 3.0
|
#include <SDL3/SDL_stdinc.h>
#include <SDL3/SDL_error.h>
#include <SDL3/SDL_keyboard.h>
#include <SDL3/SDL_video.h>
#include <SDL3/SDL_begin_code.h>
#include <SDL3/SDL_close_code.h>
Go to the source code of this file.
Typedefs | |
typedef union _XEvent | XEvent |
typedef bool(* | SDL_X11EventHook) (void *userdata, XEvent *xevent) |
Functions | |
void | SDL_SetX11EventHook (SDL_X11EventHook callback, void *userdata) |
bool | SDL_IsTablet (void) |
bool | SDL_IsTV (void) |
void | SDL_OnApplicationWillTerminate (void) |
void | SDL_OnApplicationDidReceiveMemoryWarning (void) |
void | SDL_OnApplicationWillEnterBackground (void) |
void | SDL_OnApplicationDidEnterBackground (void) |
void | SDL_OnApplicationWillEnterForeground (void) |
void | SDL_OnApplicationDidEnterForeground (void) |
Definition at line 133 of file SDL_system.h.
typedef union _XEvent XEvent |
|
extern |
Query if the current device is a tablet.
If SDL can't determine this, it will return false.
|
extern |
Query if the current device is a TV.
If SDL can't determine this, it will return false.
|
extern |
Let iOS apps with external event handling report onApplicationDidEnterBackground.
This functions allows iOS apps that have their own event handling to hook into SDL to generate SDL events. This maps directly to an iOS-specific event, but since it doesn't do anything iOS-specific internally, it is available on all platforms, in case it might be useful for some specific paradigm. Most apps do not need to use this directly; SDL's internal event code will handle all this for windows created by SDL_CreateWindow!
\threadsafety It is safe to call this function from any thread.
|
extern |
Let iOS apps with external event handling report onApplicationDidBecomeActive.
This functions allows iOS apps that have their own event handling to hook into SDL to generate SDL events. This maps directly to an iOS-specific event, but since it doesn't do anything iOS-specific internally, it is available on all platforms, in case it might be useful for some specific paradigm. Most apps do not need to use this directly; SDL's internal event code will handle all this for windows created by SDL_CreateWindow!
\threadsafety It is safe to call this function from any thread.
|
extern |
Let iOS apps with external event handling report onApplicationDidReceiveMemoryWarning.
This functions allows iOS apps that have their own event handling to hook into SDL to generate SDL events. This maps directly to an iOS-specific event, but since it doesn't do anything iOS-specific internally, it is available on all platforms, in case it might be useful for some specific paradigm. Most apps do not need to use this directly; SDL's internal event code will handle all this for windows created by SDL_CreateWindow!
\threadsafety It is safe to call this function from any thread.
|
extern |
Let iOS apps with external event handling report onApplicationWillResignActive.
This functions allows iOS apps that have their own event handling to hook into SDL to generate SDL events. This maps directly to an iOS-specific event, but since it doesn't do anything iOS-specific internally, it is available on all platforms, in case it might be useful for some specific paradigm. Most apps do not need to use this directly; SDL's internal event code will handle all this for windows created by SDL_CreateWindow!
\threadsafety It is safe to call this function from any thread.
|
extern |
Let iOS apps with external event handling report onApplicationWillEnterForeground.
This functions allows iOS apps that have their own event handling to hook into SDL to generate SDL events. This maps directly to an iOS-specific event, but since it doesn't do anything iOS-specific internally, it is available on all platforms, in case it might be useful for some specific paradigm. Most apps do not need to use this directly; SDL's internal event code will handle all this for windows created by SDL_CreateWindow!
\threadsafety It is safe to call this function from any thread.
|
extern |
Let iOS apps with external event handling report onApplicationWillTerminate.
This functions allows iOS apps that have their own event handling to hook into SDL to generate SDL events. This maps directly to an iOS-specific event, but since it doesn't do anything iOS-specific internally, it is available on all platforms, in case it might be useful for some specific paradigm. Most apps do not need to use this directly; SDL's internal event code will handle all this for windows created by SDL_CreateWindow!
\threadsafety It is safe to call this function from any thread.
|
extern |
Set a callback for every X11 event.
The callback may modify the event, and should return true if the event should continue to be processed, or false to prevent further processing.
callback | the SDL_X11EventHook function to call. |
userdata | a pointer to pass to every iteration of callback . |