The SDL 2.26.0 (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 language and distributed under the Zlib license. To use SDL capabilities in projects in various programming languages, the necessary bindings are provided.
In the new release:
- Header files for OpenGL are aligned with the latest Khronos consortium specifications.
- Added the SDL_GetWindowSizeInPixels() function to get the pixel size of a window, which due to scaling may differ from the logical size on high-DPI screens.
- Added vertical sync (vsync) simulation to software rendering code.
- Provided passing of mouse position to SDL_MouseWheelEvent.
- Added SDL_ResetHints() function to reset all hints to default values.
- Added SDL_GetJoystickGUIDInfo() function to get joystick information encoded in GUID.
- Support for PS3 and Nintendo Wii controllers has been added to the HIDAPI driver.
- Added new traits: SDL_HINT_JOYSTICK_HIDAPI_PS3, SDL_HINT_JOYSTICK_HIDAPI_WII, SDL_HINT_JOYSTICK_HIDAPI_XBOX_360, SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED, SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE, HINT_J OYSTICK_HIDAPI_XBOX_ONE_HOME_LED, SDL_HINT_JOYSTICK_HIDAPI_WII_PLAYER_LED, SDL_HINT_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS and SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_WIRELESS to control XBox 360 and PS3 controllers via HIDAPI driver.
- Enabled separate access to left and right gyroscopes in Nintendo Switch Joy-Cons combo controllers.
- Support for microsecond intervals has been added to SDL_SensorEvent, SDL_ControllerSensorEvent, DL_SensorGetDataWithTimestamp() and SDL_GameControllerGetSensorDataWithTimestamp().
- The SDL_GetRevision() function has extended SDL build information, such as adding a git commit hash.
- For Linux, the SDL_SetPrimarySelectionText(), SDL_GetPrimarySelectionText(), and SDL_HasPrimarySelectionText() functions are implemented to interact with the main clipboard.
- Added the SDL_HINT_VIDEO_WAYLAND_EMULATE_MOUSE_WARP flag to control mouse cursor emulation in Wayland-based environments.
- When building for Android, IME (Input Method Editor) software keyboard input is enabled.
Source: opennet.ru