sdl2 v2.3.0 Release Notes

Release Date: 2017-08-16 // over 5 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 to ControllerDeviceEventData.
    • ๐Ÿ‘Œ Support for event watching: addEventWatch and delEventWatch.
    • High-level bindings now distinguish between finger down / motion / up. See SDL.Event.TouchFingerEvent and SDL.Event.TouchFingerMotionEvent.
    • ๐Ÿ›ฐ Several event payloads now have their Window fields modified to use Maybe Window, substituting Nothing 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, and getRegisteredEvent.
    • ๐ŸŽ‰ Initial window visibility can be specified in WindowConfig for createWindow function.
    • WarpMouseOrigin is now fully exported and can warp to global coordinates.
    • It's possible to retrieve palette information with paletteNColors, paletteColors and palletColor.