Update SDL3

This commit is contained in:
2024-12-27 12:22:45 +02:00
parent 865b430ab0
commit 146cc13bad
3 changed files with 18 additions and 8 deletions

View File

@@ -51,6 +51,18 @@
* If you would like to receive gamepad updates while the application is in
* the background, you should set the following hint before calling
* SDL_Init(): SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS
*
* Gamepads support various optional features such as rumble, color LEDs,
* touchpad, gyro, etc. The support for these features varies depending on the
* controller and OS support available. You can check for LED and rumble
* capabilities at runtime by calling SDL_GetGamepadProperties() and checking
* the various capability properties. You can check for touchpad by calling
* SDL_GetNumGamepadTouchpads() and check for gyro and accelerometer by
* calling SDL_GamepadHasSensor().
*
* By default SDL will try to use the most capable driver available, but you
* can tune which OS drivers to use with the various joystick hints in
* SDL_hints.h.
*/
#ifndef SDL_gamepad_h_

View File

@@ -533,9 +533,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_GetCurrentRenderOutputSize(SDL_Renderer *re
* \param access one of the enumerated values in SDL_TextureAccess.
* \param w the width of the texture in pixels.
* \param h the height of the texture in pixels.
* \returns a pointer to the created texture or NULL if no rendering context
* was active, the format was unsupported, or the width or height
* were out of range; call SDL_GetError() for more information.
* \returns the created texture or NULL on failure; call SDL_GetError() for
* more information.
*
* \threadsafety This function should only be called on the main thread.
*
@@ -673,9 +672,8 @@ extern SDL_DECLSPEC SDL_Texture * SDLCALL SDL_CreateTextureFromSurface(SDL_Rende
*
* \param renderer the rendering context.
* \param props the properties to use.
* \returns a pointer to the created texture or NULL if no rendering context
* was active, the format was unsupported, or the width or height
* were out of range; call SDL_GetError() for more information.
* \returns the created texture or NULL on failure; call SDL_GetError() for
* more information.
*
* \threadsafety This function should only be called on the main thread.
*

View File

@@ -88,8 +88,8 @@ namespace Flax.Deps.Dependencies
Path.Combine(root, "include", "SDL3"),
};
CloneGitRepoFastSince(root, "https://github.com/libsdl-org/SDL.git", new DateTime(2024, 12, 24));
GitResetToCommit(root, "cf220ea4f1f3bf816ec8ae45d65f93e415c24831");
CloneGitRepoFastSince(root, "https://github.com/libsdl-org/SDL.git", new DateTime(2024, 12, 26));
GitResetToCommit(root, "578509c326f6bcc25fba7b71ebb439a165808bc5");
foreach (var platform in options.Platforms)
{