SDL Wiki Bot
a206e1e3c0
Sync SDL3 wiki -> header
2024-03-17 15:40:25 +00:00
Sam Lantinga
2f78e5f321
All storage interface functions are optional
...
If an application is creating custom storage, presumably they'll implement the functions they need.
2024-03-17 08:39:43 -07:00
Sam Lantinga
f460f42e70
Added filesystem operations to SDL_Storage
2024-03-17 08:39:43 -07:00
Sam Lantinga
7a088527c1
Removed the reserved parameter from SDL_EnumerateDirectoryCallback
...
If someone needs to, say, include an SDL_Storage object, they can simply point userdata at a structure that includes the the storage and any other data needed in enumeration.
2024-03-17 08:39:43 -07:00
Sam Lantinga
ec3ba387d1
Added SDL_OpenFileStorage() for local file storage
2024-03-17 08:39:43 -07:00
Sam Lantinga
ee0a23c7ab
The storage ready callback is optional
2024-03-17 08:39:43 -07:00
Sam Lantinga
db0c1d7aeb
Added portable file and directory operations (thanks @icculus!)
2024-03-17 08:39:43 -07:00
Sam Lantinga
fe5c34d4bd
Renamed storage functions to match SDL 3.0 naming convention
2024-03-17 08:39:43 -07:00
Frank Praznik
1bab87399f
wayland: Always use the entire buffer for the viewport source
...
Not doing so can result in protocol errors if the viewport source region is updated and a buffer with the old, smaller dimensions is committed.
2024-03-17 10:44:10 -04:00
Anonymous Maarten
e5812a9fd2
testpen: don't include math.h
2024-03-16 20:37:31 +01:00
Anonymous Maarten
2f13f66c71
testautomation: fix renderer leak in video tests
2024-03-16 11:59:04 -07:00
SDL Wiki Bot
9ccde0def4
Sync SDL3 wiki -> header
2024-03-16 14:20:24 +00:00
Ethan Lee
744227e6ab
Add SDL_storage
2024-03-16 07:19:50 -07:00
Sam Lantinga
4fc749443f
Added dialog files to the Xcode build
2024-03-15 16:27:02 -07:00
Sam Lantinga
25c64a954d
Removed UIKit_SetWindowMouseGrab(), mouse grab isn't supported on iOS
2024-03-15 16:26:40 -07:00
Sam Lantinga
41e187be4f
Adjust Steam button names to match SDL
2024-03-15 16:05:19 -07:00
Anonymous Maarten
572e088b8f
SDL_IOFromMem/SDL_IOFromConstMem: free userdata on close
2024-03-15 23:55:29 +01:00
Frank Praznik
ea60c2079b
dialog: Pass the Wayland or X11 parent window handle to the file dialog portal
...
Pass the Wayland window export string in the form "wayland:<handle string>" or the X11 window XID in the form "x11:<XID in hex>" to the file dialog portal, so that the window manager can associate the dialog with the parent window and position it correctly.
2024-03-15 18:30:05 -04:00
Frank Praznik
d523cd069f
dialog: Detect if the file chooser portal is available
...
Use the introspection method to detect if the file chooser portal is available.
2024-03-15 18:30:05 -04:00
Frank Praznik
19764ffcc8
wayland: Add the xdg-foreign-unstable-v2 protocol
...
Add the xdg-foreign-unstable-v2 protocol and use it to create export handles for toplevel windows, which will be used when an external component, such as the file chooser portal, requires it.
2024-03-15 18:30:05 -04:00
Anonymous Maarten
db31367999
testffmpeg: use SDL_free instead of free
2024-03-15 21:26:40 +01:00
Anonymous Maarten
f8c2ec5462
testffmpeg: use Uint64 instead of __u64
2024-03-15 21:26:40 +01:00
Petar Popovic
2b45452dd5
Adding comments to init-flags SDL_INIT_AUDIO and SDL_INIT_SENSOR that they imply SDL_INIT_EVENTS
...
When initializing SDL with the flag SDL_INIT_AUDIO or SDL_INIT_SENSOR the event subsystem also gets initialized(SDL_INIT_EVENTS). This isn't mentioned in the comments.
This commit adds these two comments.
2024-03-15 13:10:49 -07:00
SDL Wiki Bot
fa7ec59ecd
Sync SDL3 wiki -> header
2024-03-15 19:59:26 +00:00
Ryan C. Gordon
ec6de7017c
Merge pull request #9254 from icculus/sdl3-rwops-hidden-interface
...
rwops: Reworked RWops for SDL3. Now it's SDL_IOStream!
2024-03-15 15:58:41 -04:00
Ryan C. Gordon
b7cda16613
iostream: Final fixes before merging.
...
- SDL_GetRWProperties -> SDL_GetIOProperties
- SDL_GetRWStatus -> SDL_GetIOStatus
- Some documentation corrections and improvements.
2024-03-15 15:37:03 -04:00
Ryan C. Gordon
c175eb488c
iostream: Note that the new name has nothing to do with C++'s iostream class.
2024-03-15 01:16:31 -04:00
Ryan C. Gordon
5a21d87e69
rwops: Changed filenames that reference "rwops" to "iostream".
2024-03-14 23:30:59 -04:00
Ryan C. Gordon
6776b6108a
iostream: "free*" params should be "closeio".
2024-03-14 23:14:46 -04:00
Ryan C. Gordon
5440fd7d12
README-migration.md: Fixed some RWops mistakes.
2024-03-14 23:13:26 -04:00
Ryan C. Gordon
3a344cf877
rwops: Fixed some SDL2 symbols that got missed.
2024-03-14 21:57:21 -04:00
Ryan C. Gordon
5f64cc511e
rwops: Fixed build on Android.
2024-03-14 19:38:15 -04:00
Ryan C. Gordon
fc7afa9cbf
rwops: Renamed SDL_RWops to SDL_IOStream, and other related symbols.
2024-03-14 19:38:12 -04:00
Ryan C. Gordon
fe33b2a81b
rwops: Give implementations access to status value.
2024-03-14 19:37:07 -04:00
Ryan C. Gordon
447c29e65c
include: Added missing RWops documentation.
2024-03-14 19:37:07 -04:00
Ryan C. Gordon
cc58da4c63
rwops: Add SDL_GetRWStatus, make the statuses into an enum.
2024-03-14 19:37:06 -04:00
Ryan C. Gordon
e35c304022
rwops: Add properties for some of the internal implementation details.
2024-03-14 19:37:05 -04:00
Ryan C. Gordon
7d4d8ccde0
rwops: Rename everything from SDL_RWxxx to SDL_XxxRW.
2024-03-14 19:37:04 -04:00
Ryan C. Gordon
655ceb3b31
rwops: Renamed SDL_CreateRW and SDL_DestroyRW to SDL_OpenRW and SDL_CloseRW.
2024-03-14 19:37:01 -04:00
Ryan C. Gordon
525919b315
rwops: Reworked RWops for SDL3.
...
- SDL_RWops is now an opaque struct.
- SDL_AllocRW is gone. If an app is creating a custom RWops, they pass the
function pointers to SDL_CreateRW(), which are stored internally.
- SDL_RWclose is gone, there is only SDL_DestroyRW(), which calls the
implementation's `->close` method before freeing other things.
- There is only one path to create and use RWops now, so we don't have to
worry about whether `->close` will call SDL_DestroyRW, or if this will
risk any Properties not being released, etc.
- SDL_RWFrom* still works as expected, for getting a RWops without having
to supply your own implementation. Objects from these functions are also
destroyed with SDL_DestroyRW.
- Lots of other cleanup and SDL3ization of the library code.
2024-03-14 19:36:08 -04:00
SDL Wiki Bot
495e432fb9
Sync SDL3 wiki -> header
2024-03-14 22:41:24 +00:00
Semphris
70c2e15615
Add file dialogs
2024-03-14 15:40:25 -07:00
Sam Lantinga
30e93b40c2
If a mapping specifies a crc, don't match for controllers that don't have that CRC
...
The CRC is used to distinguish between different controllers that have the same VID/PID, so if the CRC doesn't match, it's probably a different controller that we don't know about.
Fixes https://github.com/libsdl-org/SDL/issues/9265
2024-03-14 13:26:56 -07:00
Sam Lantinga
6c11449cd4
Added a note for the SDL_CommonEvent type
2024-03-14 09:00:47 -07:00
Sam Lantinga
209a87bf24
Added missing default case (thanks @sezero!)
2024-03-14 08:52:59 -07:00
Sam Lantinga
442073f379
Added missing reserved field in SDL_CameraDeviceEvent (thanks @Saalvage!)
2024-03-14 08:51:48 -07:00
Sam Lantinga
9bef331dc8
Note that SDL_UserEvent and SDL_Event type are intentionally Uint32
2024-03-14 08:49:02 -07:00
Frank Praznik
717f297849
Add 'wl_list_for_each_safe' to the clang-format macro list
...
...and fix the formatting when it is used.
2024-03-14 10:22:23 -04:00
Sam Lantinga
3875ef4552
Removed duplicated line (thanks @sechshelme!)
...
Fixes https://github.com/libsdl-org/SDL/issues/9264
2024-03-13 13:47:32 -07:00
Frank Praznik
4686a737a9
wayland: Minor cursor code cleanup
...
Clean up variable declarations and fix some formatting issues.
2024-03-13 12:39:00 -04:00