The SDL 2.0.16 (Simple DirectMedia Layer) library, aimed at simplifying the writing of games and multimedia applications, has been released. The SDL library provides facilities such as hardware-accelerated 2D and 3D graphics output, input handling, audio playback, 3D output via OpenGL/OpenGL ES/Vulkan, and many other related operations. The library is written in C and distributed under the zlib license. Bindings are provided for using SDL capabilities in projects in various programming languages.
In the new release:
- Significantly improved Wayland support.
- Added the ability to output and capture audio using the Pipewire media server and AAudio (Android).
- Added support for Amazon Luna and Xbox Series X game controllers.
- Added support for the adaptive rumble effect on Google Stadia and Nintendo Switch Pro controllers when using the HIDAPI driver.
- Reduced CPU load when processing SDL_WaitEvent() and SDL_WaitEventTimeout() calls.
- New features proposed:
- SDL_FlashWindow() to get the user's attention.
- SDL_GetAudioDeviceSpec() to get information about the preferred audio format for the specified device.
- SDL_SetWindowAlwaysOnTop() to dynamically change the SDL_WINDOW_ALWAYS_ON_TOP (dock on top of other content) flag for the selected window.
- SDL_SetWindowKeyboardGrab() to grab keyboard input regardless of the mouse.
- SDL_SoftStretchLinear() for bilinear scaling between 32-bit surfaces.
- SDL_UpdateNVTexture() to update NV12/21 textures.
- SDL_GameControllerSendEffect() and SDL_JoystickSendEffect() to send custom effects to DualSense game controllers.
- SDL_GameControllerGetSensorDataRate() to get data on the intensity of information received from sensors of game controllers to PlayStation and Nintendo Switch.
- SDL_AndroidShowToast() to display lightweight notifications on the Android platform.
Source: opennet.ru