sdl2 v2.2.0 Release Notes
Release Date: 2017-08-16 // over 6 years ago-
๐ Version 2.0.4 of the SDL2 C library is now required:
SDL.Event
:- Add
AudioDeviceEvent
constructor toEvent
- Add
KeymapChangedEvent
constructor toEventPayload
- Add
mouseWheelEventDirection
field toMouseWheelEventData
SDL.Input.Mouse
:- Add
MouseScrollDirection
enumeration SDL.Raw.Audio
:- Add
clearQueuedAudio
function - Add
getQueuedAudioSize
function - Add
queueAudio
function SDL.Raw.Enum
:- Add
SDL_GL_CONTEXT_RELEASE_BEHAVIOR
pattern synonym - Add
JoystickPowerLevel
pattern synonyms - Add
SDL_MOUSEWHEEL_NORMAL
andSDL_MOUSEWHEEL_FLIPPED
pattern synonyms - Add
SDL_KEYMAPCHANGED
,SDL_AUDIODEVICEADDED
,SDL_AUDIODEVICEREMOVED
,SDL_RENDER_TARGETS_RESET
, andSDL_RENDER_DEVICE_RESET
pattern synonyms - Add
SDL_GL_CONTEXT_RELEASE_BEHAVIOR_NONE
andSDL_GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH
pattern synonyms - Add
SDL_WINDOW_MOUSE_CAPTURE
pattern synonym SDL.Raw.Event
:- Add
captureMouse
function - Add
getGlobalMouseState
function - Add
warpMouseGlobal
function - Add
joystickCurrentPowerLevel
function - Add
joystickFromInstanceID
function - Add
gameControllerFromInstanceID
function SDL.Raw.Event
:- Add
AudioDeviceEvent
constructor toEvent
- Add
KeymapChangedEvent
constructor toEvent
- Add
mouseWheelEventDirection
field toMouseMotionEvent
constructor
โ Add
SDL.Exception
module, exposingSDLException
โ Add new function,
createSoftwareRenderer
, to render onto a surfaceโ Add joystick POV hat support
โ Remove deprecated functionality:
InitEverything
enumeration inSDL.Init
mapRGB
inSDL.Video.Renderer
setRelativeMouseMode
inSDL.Input.Mouse
getRelativeMouseMode
inSDL.Input.Mouse
getMouseLocation
inSDL.Input.Mouse
โ Remove
ClipboardUpdateEventData
๐ Merge
isScreenSaverEnabled
,enableScreenSaver
, anddisableScreenSaver
into ascreenSaverEnabled
StateVar.๐ Make function
surfaceBlit
inSDL.Video.Renderer
return final blit rectangle post-clipping.๐ Make all fields in EventData constructors strict
๐ Fix issue with
setWindowMode
transitions not working properly between fullscreen and windowed modes.