sdl2 v2.3.0 Release Notes
Release Date: 2017-08-16 // over 6 years ago-
- Windows builds now use
-D_SDL_main_h
. See https://github.com/haskell-game/sdl2/issues/139 for more discussion. - ๐ Some basic support for game controller events have been added. See
SDL.Input.GameController
and changes toControllerDeviceEventData
. - ๐ Support for event watching:
addEventWatch
anddelEventWatch
. - High-level bindings now distinguish between finger down / motion / up.
See
SDL.Event.TouchFingerEvent
andSDL.Event.TouchFingerMotionEvent
. - ๐ฐ Several event payloads now have their
Window
fields modified to useMaybe Window
, substitutingNothing
for null pointers. - High-level structure for controller button state:
ControllerButtonState
. - High-level structure for controller buttons:
ControllerButton
. - High-level structure for controller connection:
ControllerDeviceConnection
. - High-level structure for joystick device connection:
JoyDeviceConnection
. - High-level structure for joystick button state:
JoyButtonState
. - ๐ Support for user defined events:
registerEvent
,pushRegisteredEvent
, andgetRegisteredEvent
. - ๐ Initial window visibility can be specified in
WindowConfig
forcreateWindow
function. WarpMouseOrigin
is now fully exported and can warp to global coordinates.- It's possible to retrieve palette information with
paletteNColors
,paletteColors
andpalletColor
.
- Windows builds now use