sdl2.ext.common - Frequently Used SDL2 Functions¶
This module wraps various common SDL2 functions, including methods for initializing and quitting SDL2 and its various subsystems and for retrieving events from the SDL2 event queue.
An SDL2-specific exception class.
Initializes the SDL2 video subsystem.
See pygame for a comparison between this function and
SDLError– If the SDL2 video subsystem cannot be initialized.
Quits the SDL2 video subysystem.
If no other subsystems are active, this will also call
Gets all SDL events that are currently on the event queue.
Returns: A list of all
SDL_Eventobjects currently in the event queue.
A simple event processor for testing purposes.
Starts an event loop without actually processing any event.
This method will run endlessly until an
Parameters: window (
sdl2.ext.Window) – The window within which to run the test event loop.