Skip to content

Releases: libsdl-org/SDL

2.28.0

20 Jun 18:45
Compare
Choose a tag to compare

Thanks to all the people who contributed code and feedback, SDL 2.28.0 is now available!

In addition to lots of bug fixes, here are the major changes in this release:

General:

  • Added SDL_HasWindowSurface() and SDL_DestroyWindowSurface() to switch between the window surface and rendering APIs
  • Added a display event SDL_DISPLAYEVENT_MOVED which is sent when the primary monitor changes or displays change position relative to each other
  • Added the hint SDL_HINT_ENABLE_SCREEN_KEYBOARD to control whether the on-screen keyboard should be shown when text input is active

With this release, SDL 2.0 is entering maintenance mode. While we will continue to support the library and provide stable bug fix updates, the SDL team is focusing on SDL 3.0 and all new feature development will be happening there. We are simultaneously bringing up sdl2-compat so your existing SDL 2.0 applications can run on the SDL 3.0 runtime in the future.

2.28.0 RC1

14 Jun 03:59
Compare
Choose a tag to compare
2.28.0 RC1 Pre-release
Pre-release

This is a release candidate for 2.28

In addition to lots of bug fixes, here are the major changes in this release:

General:

  • Added SDL_HasWindowSurface() and SDL_DestroyWindowSurface() to switch between the window surface and rendering APIs
  • Added a display event SDL_DISPLAYEVENT_MOVED which is sent when the primary monitor changes or displays change position relative to each other
  • Added the hint SDL_HINT_ENABLE_SCREEN_KEYBOARD to control whether the on-screen keyboard should be shown when text input is active

This is the last scheduled release of SDL 2.0. While we will continue to support the library and release updates occasionally with bugfixes, the SDL team is focusing on SDL 3.0 and all new feature development will be happening there. We are simultaneously bringing up sdl2-compat so your existing SDL 2.0 applications can run on the SDL 3.0 runtime in the future.

2.26.5

05 Apr 19:35
Compare
Choose a tag to compare

This is a stable bugfix release, with the following changes:

  • The minimum deployment target on macOS is now 10.11, due to changes in the latest Xcode update
  • Fixed incorrect modifier keys handling on macOS
  • Fixed occasional duplicate controller visible on macOS
  • Fixed handling of third party PS4 controller input reports
  • Added support for the trigger buttons on the Victrix Pro FS for PS5
  • Added mapping for Flydigi Vader 2 with the latest firmware (6.0.4.9)
  • Added mapping for DualSense Edge Wireless Controller on Linux
  • Added mapping for Hori Pokken Tournament DX Pro Pad
  • Improved the speed and quality of audio resampling
  • Fixed crash on Linux if dbus can't be initialized

2.26.4

07 Mar 00:17
Compare
Choose a tag to compare

This is a stable bugfix release, with the following changes:

  • Fixed relative mouse motion over remote desktop on Windows
  • Fixed using older game controller mappings on Linux

2.26.3

06 Feb 23:31
Compare
Choose a tag to compare

This is a stable bugfix release, with the following changes:

  • Fixed infinite loop shutting down WGI controllers
  • Fixed centering the D-pad on some Xbox controllers

2.26.2

03 Jan 15:08
Compare
Choose a tag to compare

This is a stable bugfix release, with the following changes:

  • Fixed long delay at startup when a Razer keyboard is connected
  • Fixed not receiving SDLK_5 or SDL_SCANCODE_5 when using the AZERTY keyboard layout on Linux

2.26.1

01 Dec 20:33
Compare
Choose a tag to compare

This is a stable bugfix release, with the following changes:

  • Improved audio resampling quality
  • Fixed crash if SDL_GetPointDisplayIndex() or SDL_GetRectDisplayIndex() are called before SDL_VideoInit()
  • Fixed building with older Xcode and macOS SDK
  • Fixed building when not using shared Wayland libraries

2.26.0

22 Nov 00:28
Compare
Choose a tag to compare

In addition to lots of bug fixes, here are the major changes in this release:

General:

  • Updated OpenGL headers to the latest API from The Khronos Group Inc.
  • Added SDL_GetWindowSizeInPixels() to get the window size in pixels, which may differ from the window coordinate size for windows with high-DPI support
  • Added simulated vsync synchronization for the software renderer
  • Added the mouse position to SDL_MouseWheelEvent
  • Added SDL_ResetHints() to reset all hints to their default values
  • Added SDL_GetJoystickGUIDInfo() to get device information encoded in a joystick GUID
  • Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360 to control whether the HIDAPI driver for XBox 360 controllers should be used
  • Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED to control whether the player LEDs should be lit to indicate which player is associated with an Xbox 360 controller
  • Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_WIRELESS to control whether the HIDAPI driver for XBox 360 wireless controllers should be used
  • Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE to control whether the HIDAPI driver for XBox One controllers should be used
  • Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED to control the brightness of the XBox One guide button LED
  • Added support for PS3 controllers to the HIDAPI driver, enabled by default on macOS, controlled by the SDL_HINT_JOYSTICK_HIDAPI_PS3 hint
  • Added support for Nintendo Wii controllers to the HIDAPI driver, not enabled by default, controlled by the SDL_HINT_JOYSTICK_HIDAPI_WII hint
  • Added the hint SDL_HINT_JOYSTICK_HIDAPI_WII_PLAYER_LED to control whether the player LED should be lit on the Nintendo Wii controllers
  • Added the hint SDL_HINT_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS to control whether Nintendo Switch Joy-Con controllers will be in vertical mode when using the HIDAPI driver
  • Added access to the individual left and right gyro sensors of the combined Joy-Cons controller
  • Added a microsecond timestamp to SDL_SensorEvent and SDL_ControllerSensorEvent, when the hardware provides that information
  • Added SDL_SensorGetDataWithTimestamp() and SDL_GameControllerGetSensorDataWithTimestamp() to retrieve the last sensor data with the associated microsecond timestamp
  • Added the hint SDL_HINT_HIDAPI_IGNORE_DEVICES to have the SDL HID API ignore specific devices
  • SDL_GetRevision() now includes more information about the SDL build, including the git commit hash if available

Windows:

  • Added the hint SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE to control whether the system mouse acceleration curve is used for relative mouse motion

macOS:

  • Implemented vsync synchronization on macOS 12

Linux:

  • Added SDL_SetPrimarySelectionText(), SDL_GetPrimarySelectionText(), and SDL_HasPrimarySelectionText() to interact with the X11 primary selection clipboard
  • Added the hint SDL_HINT_VIDEO_WAYLAND_EMULATE_MOUSE_WARP to control whether mouse pointer warp emulation is enabled under Wayland

Android:

  • Enabled IME soft keyboard input
  • Added version checking to make sure the SDL Java and C code are compatible

2.26.0 RC1

17 Nov 17:49
Compare
Choose a tag to compare
2.26.0 RC1 Pre-release
Pre-release

This is a release candidate for 2.26

In addition to lots of bug fixes, here are the major changes in this release:

General:

  • Updated OpenGL headers to the latest API from The Khronos Group Inc.
  • Added SDL_GetWindowSizeInPixels() to get the window size in pixels, which may differ from the window coordinate size for windows with high-DPI support
  • Added simulated vsync synchronization for the software renderer
  • Added the mouse position to SDL_MouseWheelEvent
  • Added SDL_ResetHints() to reset all hints to their default values
  • Added SDL_GetJoystickGUIDInfo() to get device information encoded in a joystick GUID
  • Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360 to control whether the HIDAPI driver for XBox 360 controllers should be used
  • Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED to control whether the player LEDs should be lit to indicate which player is associated with an Xbox 360 controller
  • Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_WIRELESS to control whether the HIDAPI driver for XBox 360 wireless controllers should be used
  • Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE to control whether the HIDAPI driver for XBox One controllers should be used
  • Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED to control the brightness of the XBox One guide button LED
  • Added support for PS3 controllers to the HIDAPI driver, enabled by default on macOS, controlled by the SDL_HINT_JOYSTICK_HIDAPI_PS3 hint
  • Added support for Nintendo Wii controllers to the HIDAPI driver, not enabled by default, controlled by the SDL_HINT_JOYSTICK_HIDAPI_WII hint
  • Added the hint SDL_HINT_JOYSTICK_HIDAPI_WII_PLAYER_LED to control whether the player LED should be lit on the Nintendo Wii controllers
  • Added the hint SDL_HINT_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS to control whether Nintendo Switch Joy-Con controllers will be in vertical mode when using the HIDAPI driver
  • Added access to the individual left and right gyro sensors of the combined Joy-Cons controller
  • Added a microsecond timestamp to SDL_SensorEvent and SDL_ControllerSensorEvent, when the hardware provides that information
  • Added SDL_SensorGetDataWithTimestamp() and SDL_GameControllerGetSensorDataWithTimestamp() to retrieve the last sensor data with the associated microsecond timestamp
  • Added the hint SDL_HINT_HIDAPI_IGNORE_DEVICES to have the SDL HID API ignore specific devices
  • SDL_GetRevision() now includes more information about the SDL build, including the git commit hash if available

Windows:

  • Added the hint SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE to control whether the system mouse acceleration curve is used for relative mouse motion

macOS:

  • Implemented vsync synchronization on macOS 12

Linux:

  • Added SDL_SetPrimarySelectionText(), SDL_GetPrimarySelectionText(), and SDL_HasPrimarySelectionText() to interact with the X11 primary selection clipboard
  • Added the hint SDL_HINT_VIDEO_WAYLAND_EMULATE_MOUSE_WARP to control whether mouse pointer warp emulation is enabled under Wayland

Android:

  • Enabled IME soft keyboard input
  • Added version checking to make sure the SDL Java and C code are compatible

2.24.2

01 Nov 13:39
Compare
Choose a tag to compare

This is a stable bugfix release, with the following changes:

Windows

  • Only check to see if the ICC profile changes when the display changes or we gain focus
  • Fixed window resize handing when using the D3D12 renderer
  • Fixed Xbox controller detection on Windows XP

macOS

  • Fixed long delay in SDL_CloseAudioDevice()

Linux

  • Fixed crash in Wayland_HasScreenKeyboardSupport()

FreeBSD

  • Fixed building without GNU sort, but warn that dynamic libraries won't be found

Emscripten

  • Fixed infinite recursion related to mutexes on startup

OS/2

  • Fixes and improvements to SDL_LoadObject() functionality