Skip to content

Commit 2642f58

Browse files
committed
Updated stub SDL library to version 3.2.6
(cherry picked from commit 565b7b4)
1 parent f43d568 commit 2642f58

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+688
-234
lines changed

Xcode/iOS/SDL3.framework/Headers/SDL.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121

2222
/**
23-
* Main include header for the SDL library, version 3.2.0
23+
* Main include header for the SDL library, version 3.2.6
2424
*
2525
* It is almost always best to include just this one header instead of
2626
* picking out individual headers included here. There are exceptions to

Xcode/iOS/SDL3.framework/Headers/SDL_assert.h

+2
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ extern "C" {
149149
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "bkpt #22\n\t" )
150150
#elif defined(_WIN32) && ((defined(__GNUC__) || defined(__clang__)) && (defined(__arm64__) || defined(__aarch64__)) )
151151
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "brk #0xF000\n\t" )
152+
#elif defined(__GNUC__) || defined(__clang__)
153+
#define SDL_TriggerBreakpoint() __builtin_trap() /* older gcc may not support SDL_HAS_BUILTIN(__builtin_trap) above */
152154
#elif defined(__386__) && defined(__WATCOMC__)
153155
#define SDL_TriggerBreakpoint() { _asm { int 0x03 } }
154156
#elif defined(HAVE_SIGNAL_H) && !defined(__WATCOMC__)

Xcode/iOS/SDL3.framework/Headers/SDL_atomic.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ extern SDL_DECLSPEC int SDLCALL SDL_AddAtomicInt(SDL_AtomicInt *a, int v);
498498
*
499499
* ***Note: If you don't know what this macro is for, you shouldn't use it!***
500500
*
501-
* \param a a pointer to an SDL_AtomicInt to increment.
501+
* \param a a pointer to an SDL_AtomicInt to decrement.
502502
* \returns true if the variable reached zero after decrementing, false
503503
* otherwise.
504504
*

Xcode/iOS/SDL3.framework/Headers/SDL_audio.h

+9-6
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ extern SDL_DECLSPEC bool SDLCALL SDL_IsAudioDevicePlayback(SDL_AudioDeviceID dev
781781
* Physical devices can not be paused or unpaused, only logical devices
782782
* created through SDL_OpenAudioDevice() can be.
783783
*
784-
* \param dev a device opened by SDL_OpenAudioDevice().
784+
* \param devid a device opened by SDL_OpenAudioDevice().
785785
* \returns true on success or false on failure; call SDL_GetError() for more
786786
* information.
787787
*
@@ -792,7 +792,7 @@ extern SDL_DECLSPEC bool SDLCALL SDL_IsAudioDevicePlayback(SDL_AudioDeviceID dev
792792
* \sa SDL_ResumeAudioDevice
793793
* \sa SDL_AudioDevicePaused
794794
*/
795-
extern SDL_DECLSPEC bool SDLCALL SDL_PauseAudioDevice(SDL_AudioDeviceID dev);
795+
extern SDL_DECLSPEC bool SDLCALL SDL_PauseAudioDevice(SDL_AudioDeviceID devid);
796796

797797
/**
798798
* Use this function to unpause audio playback on a specified device.
@@ -809,7 +809,7 @@ extern SDL_DECLSPEC bool SDLCALL SDL_PauseAudioDevice(SDL_AudioDeviceID dev);
809809
* Physical devices can not be paused or unpaused, only logical devices
810810
* created through SDL_OpenAudioDevice() can be.
811811
*
812-
* \param dev a device opened by SDL_OpenAudioDevice().
812+
* \param devid a device opened by SDL_OpenAudioDevice().
813813
* \returns true on success or false on failure; call SDL_GetError() for more
814814
* information.
815815
*
@@ -820,7 +820,7 @@ extern SDL_DECLSPEC bool SDLCALL SDL_PauseAudioDevice(SDL_AudioDeviceID dev);
820820
* \sa SDL_AudioDevicePaused
821821
* \sa SDL_PauseAudioDevice
822822
*/
823-
extern SDL_DECLSPEC bool SDLCALL SDL_ResumeAudioDevice(SDL_AudioDeviceID dev);
823+
extern SDL_DECLSPEC bool SDLCALL SDL_ResumeAudioDevice(SDL_AudioDeviceID devid);
824824

825825
/**
826826
* Use this function to query if an audio device is paused.
@@ -832,7 +832,7 @@ extern SDL_DECLSPEC bool SDLCALL SDL_ResumeAudioDevice(SDL_AudioDeviceID dev);
832832
* created through SDL_OpenAudioDevice() can be. Physical and invalid device
833833
* IDs will report themselves as unpaused here.
834834
*
835-
* \param dev a device opened by SDL_OpenAudioDevice().
835+
* \param devid a device opened by SDL_OpenAudioDevice().
836836
* \returns true if device is valid and paused, false otherwise.
837837
*
838838
* \threadsafety It is safe to call this function from any thread.
@@ -842,7 +842,7 @@ extern SDL_DECLSPEC bool SDLCALL SDL_ResumeAudioDevice(SDL_AudioDeviceID dev);
842842
* \sa SDL_PauseAudioDevice
843843
* \sa SDL_ResumeAudioDevice
844844
*/
845-
extern SDL_DECLSPEC bool SDLCALL SDL_AudioDevicePaused(SDL_AudioDeviceID dev);
845+
extern SDL_DECLSPEC bool SDLCALL SDL_AudioDevicePaused(SDL_AudioDeviceID devid);
846846

847847
/**
848848
* Get the gain of an audio device.
@@ -1583,6 +1583,9 @@ extern SDL_DECLSPEC bool SDLCALL SDL_PauseAudioStreamDevice(SDL_AudioStream *str
15831583
* previously been paused. Once unpaused, any bound audio streams will begin
15841584
* to progress again, and audio can be generated.
15851585
*
1586+
* Remember, SDL_OpenAudioDeviceStream opens device in a paused state, so this
1587+
* function call is required for audio playback to begin on such device.
1588+
*
15861589
* \param stream the audio stream associated with the audio device to resume.
15871590
* \returns true on success or false on failure; call SDL_GetError() for more
15881591
* information.

Xcode/iOS/SDL3.framework/Headers/SDL_camera.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ extern SDL_DECLSPEC SDL_CameraID * SDLCALL SDL_GetCameras(int *count);
239239
* there _is_ a camera until the user has given you permission to check
240240
* through a scary warning popup.
241241
*
242-
* \param devid the camera device instance ID to query.
242+
* \param instance_id the camera device instance ID.
243243
* \param count a pointer filled in with the number of elements in the list,
244244
* may be NULL.
245245
* \returns a NULL terminated array of pointers to SDL_CameraSpec or NULL on
@@ -254,7 +254,7 @@ extern SDL_DECLSPEC SDL_CameraID * SDLCALL SDL_GetCameras(int *count);
254254
* \sa SDL_GetCameras
255255
* \sa SDL_OpenCamera
256256
*/
257-
extern SDL_DECLSPEC SDL_CameraSpec ** SDLCALL SDL_GetCameraSupportedFormats(SDL_CameraID devid, int *count);
257+
extern SDL_DECLSPEC SDL_CameraSpec ** SDLCALL SDL_GetCameraSupportedFormats(SDL_CameraID instance_id, int *count);
258258

259259
/**
260260
* Get the human-readable device name for a camera.

Xcode/iOS/SDL3.framework/Headers/SDL_dialog.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ typedef struct SDL_DialogFileFilter
8484
* - A pointer to NULL, the user either didn't choose any file or canceled the
8585
* dialog.
8686
* - A pointer to non-`NULL`, the user chose one or more files. The argument
87-
* is a null-terminated list of pointers to C strings, each containing a
88-
* path.
87+
* is a null-terminated array of pointers to UTF-8 encoded strings, each
88+
* containing a path.
8989
*
9090
* The filelist argument should not be freed; it will automatically be freed
9191
* when the callback returns.

Xcode/iOS/SDL3.framework/Headers/SDL_events.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ typedef enum SDL_EventType
132132

133133
/* Window events */
134134
/* 0x200 was SDL_WINDOWEVENT, reserve the number for sdl2-compat */
135-
/* 0x201 was SDL_EVENT_SYSWM, reserve the number for sdl2-compat */
135+
/* 0x201 was SDL_SYSWMEVENT, reserve the number for sdl2-compat */
136136
SDL_EVENT_WINDOW_SHOWN = 0x202, /**< Window has been shown */
137137
SDL_EVENT_WINDOW_HIDDEN, /**< Window has been hidden */
138138
SDL_EVENT_WINDOW_EXPOSED, /**< Window has been exposed and should be redrawn, and can be redrawn directly from event watchers for this event */
@@ -1108,7 +1108,7 @@ typedef enum SDL_EventAction
11081108
* \param numevents if action is SDL_ADDEVENT, the number of events to add
11091109
* back to the event queue; if action is SDL_PEEKEVENT or
11101110
* SDL_GETEVENT, the maximum number of events to retrieve.
1111-
* \param action action to take; see [[#action|Remarks]] for details.
1111+
* \param action action to take; see [Remarks](#remarks) for details.
11121112
* \param minType minimum value of the event type to be considered;
11131113
* SDL_EVENT_FIRST is a safe choice.
11141114
* \param maxType maximum value of the event type to be considered;

Xcode/iOS/SDL3.framework/Headers/SDL_gamepad.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* "joysticks" now are actually console-style gamepads. So SDL provides the
3030
* gamepad API on top of the lower-level joystick functionality.
3131
*
32-
* The difference betweena joystick and a gamepad is that a gamepad tells you
32+
* The difference between a joystick and a gamepad is that a gamepad tells you
3333
* _where_ a button or axis is on the device. You don't speak to gamepads in
3434
* terms of arbitrary numbers like "button 3" or "axis 2" but in standard
3535
* locations: the d-pad, the shoulder buttons, triggers, A/B/X/Y (or

0 commit comments

Comments
 (0)