All Versions
30
Latest Version
Avg Release Cycle
166 days
Latest Release
-
Changelog History
Page 2
Changelog History
Page 2
-
v2.4.0.1 Changes
March 11, 2018- Raise upper bounds for
exceptions
to <0.11
- Raise upper bounds for
-
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 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
-
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 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.
-
v2.1.3 Changes
September 06, 2016- ๐ Cabal flag
no-linear
removes dependency onlinear
(and thus, transiently,lens
). SeeSDL.Vect
for details. - โ Remove 'lens' dependency from all examples.
- โ Add Cabal flag
opengl-example
to separate that target fromexamples
, because it is now the only example with an extra dependency (OpenGL). - ๐ Make
hlint
happy with examples. - โ Add
updateTexture
wrapper for nativeSDL_UpdateTexture
. - ๐ฆ Expose
glGetDrawableSize
(can differ from window size in some environments). - Correct
hintToString
output to match SDL hint tokens, rather than the names of the CPP macros defining them. - โ Removed
ghc-options: -Wall
until we drop support for GHC 7.8. (>1300 warnings!) - ๐ Various documentation updates.
- ๐ Cabal flag
-
v2.1.3.1 Changes
January 31, 2017- Raise upper bounds for
vector
to <0.13
- Raise upper bounds for
-
v2.1.2 Changes
- ๐ Revise some documentation examples to be more idomatic
- โก๏ธ Update
.gitignore
to coverstack
and other tools - Raise upper bounds for
transformers
to <0.6 - Lower required SDL2 version to 2.0.2.
- ๐ Fix decoding of
TextEditingEvent
where the Raw bindings failed to stop reading character data past the null terminator.
-
v2.1.2.1 Changes
- Raise upper bounds for
lens
to <4.15 (affects examples only)
- Raise upper bounds for
-
v2.1.1 Changes
January 01, 2016SDL.Input.Mouse
new has a new API for fetching the location of the mouse. This API gives you greater control over finding the mouse position with respect to the various "modes" a mouse can be in. The old API still exists, but will be removed at some point in the future.SDL.Raw
now has a binding toSDL_free
.
-
v2.1.0 Changes
- ๐ Introduce
initializeAll
and deprecateInitEverything
. To fix this deprecation warning, changeinitialize [InitEverything]
toinitializeAll
. surfaceColorKey
,surfaceFillRect
andsurfaceFillRects
now all operate on on RGBAV4 Word8
values. They all implicitly map and unmap (usingSDL_MapRGBA
andSDL_GetRGBA
respectively).- ๐
SDL.mapRGB
is now deprecated, as this conversion is always done for you. If you still need this routine, useSDL.Raw.mapRGB
. - ๐ Fix a runtime crash when reading the current BlendMode of a texture. Thanks to @seppeljordan for discovering and fixing this bug.
- ๐ Introduce