SDL2 Adds Sony PlayStation 5 Controller Support

Written by Michael Larabel in Linux Gaming on 5 November 2020 at 08:51 PM EST. 19 Comments
LINUX GAMING
While the Sony PlayStation 5 isn't beginning to ship until next week there is now support within the widely-used SDL2 library for its controllers.

Sam Lantinga of Valve has added support for the PlayStation 5 controller mappings to SDL2 plus necessary joystick code changes.

Merged this evening was initial support for the Sony PS5 controller to this open-source library that is widely used by cross-platform games for abstracting various hardware/software functionality. With this PlayStation 5 controller support all of the buttons and other functionality should be mapped properly if using the controller connected to your PC and trying various SDL2-using games.

A follow-up commit added an Android mapping as well for the Sony PlayStation 5 controller.

As it has already been eight months since the release of SDL 2.0.12 and the project roughly on a half-year cadence, it will hopefully be soon for the next official SDL2 release with this PS5 controller support and more.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week