Load SDL2 library. Param1: You can specify a minimum version of SDL2 for your application.
Releases all resourceas and the SDL library.
Returns available SDL audio drivers.
Returns available SDL video drivers.
Returns available audio device names.
Sets clipboard content. Throws PlatformException on error.
Returns clipboard content. Throws PlatformException on error.
Returns number of CPUs
Returns available display information. Throws PlatformException on error.
Returns last SDL error and clears it.
Returns resolution of the first display. Throws PlatformException on error.
Returns L1 cacheline size in bytes.
Returns platform name.
Get next SDL2 event. Input state gets updated and window callbacks are called too. Returns true if an event is returned.
Returns a path suitable for writing configuration files. Throws PlatformException on error.
Process all pending SDL2 events. Input state gets updated.
Returns resolution of the second display. Throws PlatformException on error.
Returns true if application should quit.
Start text input.
Stops text input.
Initialize a subsystem.
Returns true if a subsystem is initiated.
Wait for next SDL2 event. Input state gets updated and window callbacks are called too. Throws PlatformException on error.
Wait for next SDL2 event, with a timeout. Input state gets updated and window callbacks are called too. Returns true if an event is returned. Throws PlatformException on error.
Root object for SDL2 functionality. It's passed around to other SDL wapper objects to ensure library loading.