All Versions
26
Latest Version
Avg Release Cycle
166 days
Latest Release
357 days ago

Changelog History
Page 1

  • v2.5.3.0 Changes

    November 02, 2020
    • Correct the Storable instance for SDL.Raw.Types.Event to correctly convert SDL_CONTROLLERAXISMOTION to a ControllerAxisEvent (it was previously ControllerButtonEvent). See https://github.com/haskell-game/sdl2/pull/218 for more details.
  • v2.5.2.0 Changes

    April 16, 2020
  • v2.5.1.0 Changes

    February 04, 2020
    • ๐Ÿ‘Œ Support linear-1.21
  • v2.5.0.0 Changes

    June 11, 2019
    • ๐Ÿ”– Version 2.0.6 of the SDL2 C library is now required.

    • โž• Added Vulkan support. See SDL.Video.WindowGraphicsContext data type and SDL.Video.Vulkan module.

    • ๐Ÿ‘Œ Support StateVar < 1.3

  • v2.4.1.0 Changes

    June 29, 2018

    ๐Ÿ‘€ More SDL functions no longer allocate. See #179 and #178. Thanks to @chrisdone for this work.

    ๐Ÿ›  Fixed an off-by-one bug in SDL.Input.Mouse.getMouseButtons. See #177 for more information. Thanks to @Linearity for identifying and fixing this bug.

  • v2.4.0 Changes

    March 11, 2018
    • getRelativeMouseLocation now returns Vector instead of Point.
    • getModalMouseLocation returns either a Vector or a Point, wrapped in (new) ModalLocation.
    • ๐Ÿ WindowSizeChangedEventData includes the new window size.
    • โž• Added an invalid state to the ControllerButtonState enum, and switched to a more reliable state detection method.
    • Raise upper bounds for exceptions to <0.10
  • v2.4.0.1 Changes

    March 11, 2018
    • Raise upper bounds for exceptions to <0.11
  • v2.3.0 Changes

    August 16, 2017
    • 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.
  • v2.3.0.1

    February 26, 2018
  • v2.2.0 Changes

    August 16, 2017
    • ๐Ÿ”– Version 2.0.4 of the SDL2 C library is now required:

      • SDL.Event:
      • Add AudioDeviceEvent constructor to Event
      • Add KeymapChangedEvent constructor to EventPayload
      • Add mouseWheelEventDirection field to MouseWheelEventData
      • 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 and SDL_MOUSEWHEEL_FLIPPED pattern synonyms
      • Add SDL_KEYMAPCHANGED, SDL_AUDIODEVICEADDED, SDL_AUDIODEVICEREMOVED, SDL_RENDER_TARGETS_RESET, and SDL_RENDER_DEVICE_RESET pattern synonyms
      • Add SDL_GL_CONTEXT_RELEASE_BEHAVIOR_NONE and SDL_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 to Event
      • Add KeymapChangedEvent constructor to Event
      • Add mouseWheelEventDirection field to MouseMotionEvent constructor
    • โž• Add SDL.Exception module, exposing SDLException

    • โž• Add new function, createSoftwareRenderer, to render onto a surface

    • โž• Add joystick POV hat support

    • โœ‚ Remove deprecated functionality:

      • InitEverything enumeration in SDL.Init
      • mapRGB in SDL.Video.Renderer
      • setRelativeMouseMode in SDL.Input.Mouse
      • getRelativeMouseMode in SDL.Input.Mouse
      • getMouseLocation in SDL.Input.Mouse
    • โœ‚ Remove ClipboardUpdateEventData

    • ๐Ÿ”€ Merge isScreenSaverEnabled, enableScreenSaver, and disableScreenSaver into a screenSaverEnabled StateVar.

    • ๐Ÿ‘‰ Make function surfaceBlit in SDL.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.