# Announcing SDL 2.24.0

**URL:** <https://discourse.libsdl.org/t/announcing-sdl-2-24-0/38280>\
**Category:** SDL Announcements\
**Created:** [August 19, 2022, 4:24pm UTC](https://discourse.libsdl.org/t/announcing-sdl-2-24-0/38280 "2022-08-19T16:24:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [August 19, 2022, 4:24pm UTC](https://discourse.libsdl.org/t/announcing-sdl-2-24-0/38280/1 "2022-08-19T16:24:51Z")

</div>

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

> **[Release 2.24.0 · libsdl-org/SDL](https://github.com/libsdl-org/SDL/releases/tag/release-2.24.0)**
>
> In addition to lots of bug fixes, here are the major changes in this release:
> General:
> 
> New version numbering scheme, similar to GLib and Flatpak.
> 
> An even number in the minor version (second compo...

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

General:

- New version numbering scheme, similar to GLib and Flatpak.
  - An even number in the minor version (second component) indicates a production-ready stable release such as 2.24.0, which would have been 2.0.24 under the old system.
    - The patchlevel (micro version, third component) indicates a bugfix-only update: for example, 2.24.1 would be a bugfix-only release to fix bugs in 2.24.0, without adding new features.

  - An odd number in the minor version indicates a prerelease such as 2.23.0. Stable distributions should not use these prereleases.
    - The patchlevel indicates successive prereleases, for example 2.23.1 and 2.23.2 would be prereleases during development of the SDL 2.24.0 stable release.

- Added SDL\_GetPointDisplayIndex() and SDL\_GetRectDisplayIndex() to get the display associated with a point and rectangle in screen space
- Added SDL\_bsearch(), SDL\_crc16(), and SDL\_utf8strnlen() to the stdlib routines
- Added SDL\_CPUPauseInstruction() as a macro in SDL\_atomic.h
- Added SDL\_size\_mul\_overflow() and SDL\_size\_add\_overflow() for better size overflow protection
- Added SDL\_ResetHint() to reset a hint to the default value
- Added SDL\_ResetKeyboard() to reset SDL’s internal keyboard state, generating key up events for all currently pressed keys
- Added the hint SDL\_HINT\_MOUSE\_RELATIVE\_WARP\_MOTION to control whether mouse warping generates motion events in relative mode. This hint defaults off.
- Added the hint SDL\_HINT\_TRACKPAD\_IS\_TOUCH\_ONLY to control whether trackpads are treated as touch devices or mice. By default touchpads are treated as mouse input.
- The hint SDL\_HINT\_JOYSTICK\_HIDAPI\_JOY\_CONS now defaults on
- Added support for mini-gamepad mode for Nintendo Joy-Con controllers using the HIDAPI driver
- Added the hint SDL\_HINT\_JOYSTICK\_HIDAPI\_COMBINE\_JOY\_CONS to control whether Joy-Con controllers are automatically merged into a unified gamepad when using the HIDAPI driver. This hint defaults on.
- The hint SDL\_HINT\_JOYSTICK\_HIDAPI\_SWITCH\_HOME\_LED can be set to a floating point value to set the brightness of the Home LED on Nintendo Switch controllers
- Added the hint SDL\_HINT\_JOYSTICK\_HIDAPI\_JOYCON\_HOME\_LED to set the Home LED brightness for the Nintendo Joy-Con controllers. By default the Home LED is not modified.
- Added the hint SDL\_HINT\_JOYSTICK\_HIDAPI\_SWITCH\_PLAYER\_LED to control whether the player LED should be lit on the Nintendo Joy-Con controllers
- Added support for Nintendo Online classic controllers using the HIDAPI driver
- Added the hint SDL\_HINT\_JOYSTICK\_HIDAPI\_NINTENDO\_CLASSIC to control whether the HIDAPI driver for Nintendo Online classic controllers should be used
- Added support for the NVIDIA Shield Controller to the HIDAPI driver, supporting rumble and battery status
- Added support for NVIDIA SHIELD controller to the HIDAPI driver, and a hint SDL\_HINT\_JOYSTICK\_HIDAPI\_SHIELD to control whether this is used
- Added functions to get the platform dependent name for a joystick or game controller:
  - SDL\_JoystickPathForIndex()
  - SDL\_JoystickPath()
  - SDL\_GameControllerPathForIndex()
  - SDL\_GameControllerPath()

- Added SDL\_GameControllerGetFirmwareVersion() and SDL\_JoystickGetFirmwareVersion(), currently implemented for DualSense™ Wireless Controllers using HIDAPI
- Added SDL\_JoystickAttachVirtualEx() for extended virtual controller support
- Added joystick event SDL\_JOYBATTERYUPDATED for when battery status changes
- Added SDL\_GUIDToString() and SDL\_GUIDFromString() to convert between SDL GUID and string
- Added SDL\_HasLSX() and SDL\_HasLASX() to detect LoongArch SIMD support
- Added SDL\_GetOriginalMemoryFunctions()
- Added SDL\_GetDefaultAudioInfo() to get the name and format of the default audio device, currently implemented for PipeWire, PulseAudio, WASAPI, and DirectSound
- Added HIDAPI driver for the NVIDIA SHIELD controller (2017 model) to enable support for battery status and rumble
- Added support for opening audio devices with 3 or 5 channels (2.1, 4.1). All channel counts from Mono to 7.1 are now supported.
- Rewrote audio channel converters used by SDL\_AudioCVT, based on the channel matrix coefficients used as the default for FAudio voices
- SDL log messages are no longer limited to 4K and can be any length
- Fixed a long-standing calling convention issue with dynapi affecting OpenWatcom or OS/2 builds

Windows:

- Added initial support for building for Windows and Xbox with Microsoft’s Game Development Kit (GDK), see docs/README-gdk.md for details
- Added a D3D12 renderer implementation and SDL\_RenderGetD3D12Device() to retrieve the D3D12 device associated with it
- Added the hint SDL\_HINT\_WINDOWS\_DPI\_AWARENESS to set whether the application is DPI-aware. This hint must be set before initializing the video subsystem
- Added the hint SDL\_HINT\_WINDOWS\_DPI\_SCALING to control whether the SDL coordinates are in DPI-scaled points or pixels
- Added the hint SDL\_HINT\_DIRECTINPUT\_ENABLED to control whether the DirectInput driver should be used
- Added support for SDL\_GetAudioDeviceSpec to the DirectSound backend

Linux:

- Support for XVidMode has been removed, mode changes are only supported using the XRandR extension
- Added the hint SDL\_HINT\_VIDEO\_WAYLAND\_MODE\_EMULATION to control whether to expose a set of emulated modes in addition to the native resolution modes available on Wayland
- Added the hint SDL\_HINT\_KMSDRM\_DEVICE\_INDEX to specify which KMSDRM device to use if the default is not desired
- Added the hint SDL\_HINT\_LINUX\_DIGITAL\_HATS to control whether to treat hats as digital rather than checking to see if they may be analog
- Added the hint SDL\_HINT\_LINUX\_HAT\_DEADZONES to control whether to use deadzones on analog hats

macOS:

- Bumped minimum OS deployment version to macOS 10.9
- Added SDL\_GL\_FLOATBUFFERS to allow Cocoa GL contexts to use EDR
- Added the hint SDL\_HINT\_MAC\_OPENGL\_ASYNC\_DISPATCH to control whether dispatching OpenGL context updates should block the dispatching thread until the main thread finishes processing. This hint defaults to blocking, which is the safer option on modern macOS.

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [October 5, 2022, 12:18am UTC](https://discourse.libsdl.org/t/announcing-sdl-2-24-0/38280/4 "2022-10-05T00:18:54Z")

</div>

A minor update with bug fixes has been released:

> **[Release 2.24.1 · libsdl-org/SDL](https://github.com/libsdl-org/SDL/releases/tag/release-2.24.1)**
>
> This is a stable bugfix release, with the following changes:
> General
> 
> Fixed shader compilation issues using the OpenGL ES2 renderer
> Fixed configure tests failing when using clang 15
> 
> Windows
> 
> Fixed...

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [November 1, 2022, 1:41pm UTC](https://discourse.libsdl.org/t/announcing-sdl-2-24-0/38280/5 "2022-11-01T13:41:06Z")

</div>

A minor update with bug fixes has been released:

> **[Release 2.24.2 · libsdl-org/SDL](https://github.com/libsdl-org/SDL/releases/tag/release-2.24.2)**
>
> 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 t...
