|
1 | 1 |
|
2 | 2 | This is a list of major changes in SDL's version history.
|
3 | 3 |
|
| 4 | +--------------------------------------------------------------------------- |
| 5 | +2.0.14: |
| 6 | +--------------------------------------------------------------------------- |
| 7 | +General: |
| 8 | +* Added support for PS5 DualSense and Xbox Series X controllers to the HIDAPI controller driver |
| 9 | +* Added game controller button constants for paddles and new buttons |
| 10 | +* Added game controller functions to get additional information: |
| 11 | + * SDL_GameControllerGetSerial() |
| 12 | + * SDL_GameControllerHasAxis() |
| 13 | + * SDL_GameControllerHasButton() |
| 14 | + * SDL_GameControllerGetNumTouchpads() |
| 15 | + * SDL_GameControllerGetNumTouchpadFingers() |
| 16 | + * SDL_GameControllerGetTouchpadFinger() |
| 17 | + * SDL_GameControllerHasSensor() |
| 18 | + * SDL_GameControllerSetSensorEnabled() |
| 19 | + * SDL_GameControllerIsSensorEnabled() |
| 20 | + * SDL_GameControllerGetSensorData() |
| 21 | + * SDL_GameControllerRumbleTriggers() |
| 22 | + * SDL_GameControllerHasLED() |
| 23 | + * SDL_GameControllerSetLED() |
| 24 | +* Added the hint SDL_JOYSTICK_HIDAPI_PS5 to control whether the HIDAPI driver for PS5 controllers should be used. |
| 25 | +* Added joystick functions to get additional information: |
| 26 | + * SDL_JoystickGetSerial() |
| 27 | + * SDL_JoystickRumbleTriggers() |
| 28 | + * SDL_JoystickHasLED() |
| 29 | + * SDL_JoystickSetLED() |
| 30 | +* Added an API to allow the application to create virtual joysticks: |
| 31 | + * SDL_JoystickAttachVirtual() |
| 32 | + * SDL_JoystickDetachVirtual() |
| 33 | + * SDL_JoystickIsVirtual() |
| 34 | + * SDL_JoystickSetVirtualAxis() |
| 35 | + * SDL_JoystickSetVirtualButton() |
| 36 | + * SDL_JoystickSetVirtualHat() |
| 37 | +* Added SDL_LockSensors() and SDL_UnlockSensors() to guarantee exclusive access to the sensor list |
| 38 | +* Added SDL_HAPTIC_STEERING_AXIS to play an effect on the steering wheel |
| 39 | +* Added the hint SDL_HINT_MOUSE_RELATIVE_SCALING to control whether relative motion is scaled by the screen DPI or renderer logical size |
| 40 | +* The default value for SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS is now false for better compatibility with modern window managers |
| 41 | +* Added SDL_GetPreferredLocales() to get the application's current locale setting |
| 42 | +* Added the hint SDL_HINT_PREFERRED_LOCALES to override your application's default locale setting |
| 43 | +* Added SDL_OpenURL() to open a URL in the system's default browser |
| 44 | +* Added SDL_HasSurfaceRLE() to tell whether a surface is currently using RLE encoding |
| 45 | +* Added SDL_SIMDRealloc() to reallocate memory obtained from SDL_SIMDAlloc() |
| 46 | +* Added SDL_GetErrorMsg() to get the last error in a thread-safe way |
| 47 | +* Added SDL_crc32(), SDL_wcscasecmp(), SDL_wcsncasecmp(), SDL_trunc(), SDL_truncf() |
| 48 | +* Added clearer names for RGB pixel formats, e.g. SDL_PIXELFORMAT_XRGB8888, SDL_PIXELFORMAT_XBGR8888, etc. |
| 49 | + |
| 50 | +Windows: |
| 51 | +* Added the RAWINPUT controller driver to support more than 4 Xbox controllers simultaneously |
| 52 | +* Added the hint SDL_HINT_JOYSTICK_RAWINPUT to control whether the RAWINPUT driver should be used |
| 53 | +* 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. |
| 54 | + |
| 55 | +macOS: |
| 56 | +* Added the SDL_WINDOW_METAL flag to specify that a window should be created with a Metal view |
| 57 | +* Added SDL_Metal_GetLayer() to get the CAMetalLayer backing a Metal view |
| 58 | +* Added SDL_Metal_GetDrawableSize() to get the size of a window's drawable, in pixels |
| 59 | + |
| 60 | +Linux: |
| 61 | +* Added the hint SDL_HINT_AUDIO_DEVICE_APP_NAME to specify the name that shows up in PulseAudio for your application |
| 62 | +* Added the hint SDL_HINT_AUDIO_DEVICE_STREAM_NAME to specify the name that shows up in PulseAudio associated with your audio stream |
| 63 | +* Added the hint SDL_HINT_LINUX_JOYSTICK_DEADZONES to control whether HID defined dead zones should be respected on Linux |
| 64 | +* Added the hint SDL_HINT_THREAD_PRIORITY_POLICY to specify the thread scheduler policy |
| 65 | +* Added the hint SDL_HINT_THREAD_FORCE_REALTIME_TIME_CRITICAL to allow time critical threads to use a realtime scheduling policy |
| 66 | + |
| 67 | +Android: |
| 68 | +* Added SDL_AndroidRequestPermission() to request a specific system permission |
| 69 | +* Added the hint SDL_HINT_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO to control whether audio will pause when the application goes intot he background |
| 70 | + |
| 71 | +OS/2: |
| 72 | +* Added support for OS/2, see docs/README-os2.md for details |
| 73 | + |
| 74 | +Emscripten (running in a web browser): |
| 75 | +* Added the hint SDL_HINT_EMSCRIPTEN_ASYNCIFY to control whether SDL should call emscripten_sleep internally |
| 76 | + |
| 77 | + |
4 | 78 | ---------------------------------------------------------------------------
|
5 | 79 | 2.0.12:
|
6 | 80 | ---------------------------------------------------------------------------
|
|
0 commit comments