SDL 2.0.16 released!

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

https://www.libsdl.org/download-2.0.php

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

General:

  • Added SDL_FlashWindow() to get a user’s attention
  • Added SDL_GetAudioDeviceSpec() to get the preferred audio format of a device
  • Added SDL_SetWindowAlwaysOnTop() to dynamically change the SDL_WINDOW_ALWAYS_ON_TOP flag for a window
  • Added SDL_SetWindowKeyboardGrab() to support grabbing the keyboard independently of the mouse
  • Added SDL_SoftStretchLinear() to do bilinear scaling between 32-bit software surfaces
  • Added SDL_UpdateNVTexture() to update streaming NV12/21 textures
  • Added SDL_GameControllerSendEffect() and SDL_JoystickSendEffect() to allow sending custom trigger effects to the DualSense controller
  • Added SDL_GameControllerGetSensorDataRate() to get the sensor data rate for PlayStation and Nintendo Switch controllers
  • Added support for the Amazon Luna game controller
  • Added rumble support for the Google Stadia controller using the HIDAPI driver
  • Added SDL_GameControllerType constants for the Amazon Luna and Google Stadia controllers
  • Added analog rumble for Nintendo Switch Pro controllers using the HIDAPI driver
  • Reduced CPU usage when using SDL_WaitEvent() and SDL_WaitEventTimeout()

Windows:

  • Added SDL_SetWindowsMessageHook() to set a function that is called for all Windows messages
  • Added SDL_RenderGetD3D11Device() to get the D3D11 device used by the SDL renderer

Linux:

  • Greatly improved Wayland support
  • Added support for audio output and capture using Pipewire
  • Added the hint SDL_HINT_AUDIO_INCLUDE_MONITORS to control whether PulseAudio recording should include monitor devices
  • Added the hint SDL_HINT_AUDIO_DEVICE_STREAM_ROLE to describe the role of your application for audio control panels

Android:

  • Added support for audio output and capture using AAudio
  • Added SDL_AndroidShowToast() to show a lightweight notification

iOS:

  • Added support for mouse relative mode on iOS 14.1 and newer
  • Added support for the Xbox Series X controller

tvOS:

  • Added support for the Xbox Series X controller
4 Likes

It seems like SDL_HINT_JOYSTICK_HIDAPI_CORRELATE_XINPUT got renamed to SDL_HINT_JOYSTICK_RAWINPUT_CORRELATE_XINPUT.