SDL 2.0.14 PRERELEASE

Thanks to all the people who contributed code and feedback, SDL 2.0.14 is now available as a PRERELEASE build!

Please let us know if there are any bugs in bugzilla that are blocking you.

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

  • Added support for PS5 DualSense and Xbox Series X controllers to the HIDAPI controller driver
  • Added game controller button constants for paddles and new buttons
  • Added game controller functions to get additional information:
    * SDL_GameControllerGetSerial()
    * SDL_GameControllerHasAxis()
    * SDL_GameControllerHasButton()
    * SDL_GameControllerGetNumTouchpads()
    * SDL_GameControllerGetNumTouchpadFingers()
    * SDL_GameControllerGetTouchpadFinger()
    * SDL_GameControllerHasSensor()
    * SDL_GameControllerSetSensorEnabled()
    * SDL_GameControllerIsSensorEnabled()
    * SDL_GameControllerGetSensorData()
    * SDL_GameControllerRumbleTriggers()
    * SDL_GameControllerHasLED()
    * SDL_GameControllerSetLED()
  • Added the hint SDL_JOYSTICK_HIDAPI_PS5 to control whether the HIDAPI driver for PS5 controllers should be used.
  • Added joystick functions to get additional information:
    * SDL_JoystickGetSerial()
    * SDL_JoystickRumbleTriggers()
    * SDL_JoystickHasLED()
    * SDL_JoystickSetLED()
  • Added an API to allow the application to create virtual joysticks:
    * SDL_JoystickAttachVirtual()
    * SDL_JoystickDetachVirtual()
    * SDL_JoystickIsVirtual()
    * SDL_JoystickSetVirtualAxis()
    * SDL_JoystickSetVirtualButton()
    * SDL_JoystickSetVirtualHat()
  • Added SDL_LockSensors() and SDL_UnlockSensors() to guarantee exclusive access to the sensor list
  • Added SDL_HAPTIC_STEERING_AXIS to play an effect on the steering wheel
  • Added the hint SDL_HINT_MOUSE_RELATIVE_SCALING to control whether relative motion is scaled by the screen DPI or renderer logical size
  • The default value for SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS is now false for better compatibility with modern window managers
  • Added SDL_GetPreferredLocales() to get the application’s current locale setting
  • Added the hint SDL_HINT_PREFERRED_LOCALES to override your application’s default locale setting
  • Added SDL_OpenURL() to open a URL in the system’s default browser
  • Added SDL_HasSurfaceRLE() to tell whether a surface is currently using RLE encoding
  • Added SDL_SIMDRealloc() to reallocate memory obtained from SDL_SIMDAlloc()
  • Added SDL_GetErrorMsg() to get the last error in a thread-safe way
  • Added SDL_crc32(), SDL_wcscasecmp(), SDL_wcsncasecmp(), SDL_trunc(), SDL_truncf()
  • Added clearer names for RGB pixel formats, e.g. SDL_PIXELFORMAT_XRGB8888, SDL_PIXELFORMAT_XBGR8888, etc.

Windows:

  • Added the RAWINPUT controller driver to support more than 4 Xbox controllers simultaneously
  • Added the hint SDL_HINT_JOYSTICK_RAWINPUT to control whether the RAWINPUT driver should be used
  • Added the hint SDL_HINT_JOYSTICK_HIDAPI_CORRELATE_XINPUT to control whether XInput and WGI should be used to for complete controller functionality with the RAWINPUT driver.

macOS:

  • Added the SDL_WINDOW_METAL flag to specify that a window should be created with a Metal view
  • Added SDL_Metal_GetLayer() to get the CAMetalLayer backing a Metal view
  • Added SDL_Metal_GetDrawableSize() to get the size of a window’s drawable, in pixels

Linux:

  • Added the hint SDL_HINT_AUDIO_DEVICE_APP_NAME to specify the name that shows up in PulseAudio for your application
  • Added the hint SDL_HINT_AUDIO_DEVICE_STREAM_NAME to specify the name that shows up in PulseAudio associated with your audio stream
  • Added the hint SDL_HINT_LINUX_JOYSTICK_DEADZONES to control whether HID defined dead zones should be respected on Linux
  • Added the hint SDL_HINT_THREAD_PRIORITY_POLICY to specify the thread scheduler policy
  • Added the hint SDL_HINT_THREAD_FORCE_REALTIME_TIME_CRITICAL to allow time critical threads to use a realtime scheduling policy

Android:

  • Added SDL_AndroidRequestPermission() to request a specific system permission
  • Added the hint SDL_HINT_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO to control whether audio will pause when the application goes intot he background

OS/2:

  • Added support for OS/2, see docs/README-os2.md for details

Emscripten (running in a web browser):

  • Added the hint SDL_HINT_EMSCRIPTEN_ASYNCIFY to control whether SDL should call emscripten_sleep internally
2 Likes

This is going to be an awesome update, good work to everyone involved.

There is still one major bug that’s kind of a deal breaker for me, did it get fixed yet? : https://bugzilla.libsdl.org/show_bug.cgi?id=4286

1 Like

Hi,

Will SDL 2.0.14 be released before Christmas 2020 ?
We are working on an update to one of our SDL2 games,
and would like to include SDL 2.0.14 if possible before release.
Let us know, thanks!

Jesse

Hey there, bit of a noob here, but after installing this version on Arch, I’ve noticed the DualSense controller behaves exactly the same as before, both wired and wireless. Is this intentional? For instance, certain games still register the triggers as a full button press.

Sweet!

I’ll do some testing this weekend :slight_smile: ( tracked here: https://github.com/pygame/pygame/issues/2393 )

I wonder if SDL_image and SDL_ttf are having releases at some point as well? Or is it only SDL?

The RC build has been updated with some fixes, and barring any show stoppers we plan to release early next week.

Please test it out and let us know if there are any issues.

Thanks!

Arch needs to have updated udev rules to allow SDL raw access to the device.

The final release candidate build is up:
http://www.libsdl.org/tmp/download-2.0.php

Barring any showstoppers, we plan to release this tomorrow.

Happy Holidays! :slight_smile:

1 Like

Thanks everyone, this is now released! :slight_smile:

2 Likes