Sam Lantinga
4f628b5b62
Renamed SDL_HINT_GDK_TEXTINPUT_DEFAULT to SDL_HINT_GDK_TEXTINPUT_DEFAULT_TEXT
2024-02-12 09:54:33 -08:00
Sam Lantinga
fd5d761128
Renamed SDL_HINT_DIRECTINPUT_ENABLED to SDL_HINT_JOYSTICK_DIRECTINPUT
2024-02-12 09:54:33 -08:00
Sam Lantinga
a5da7d0dd5
Renamed SDL_HINT_ALLOW_TOPMOST to SDL_HINT_WINDOW_ALLOW_TOPMOST
2024-02-12 09:54:33 -08:00
Sam Lantinga
cacac6cc34
Updated structure and field names for consistency
...
Type names are camel case and field names are snake case except for fields ending in id, which are capitalized.
Fixes https://github.com/libsdl-org/SDL/issues/6955
2024-02-11 08:27:56 -08:00
Sam Lantinga
f95b7ee4da
Renamed SDL_HasWindowSurface to SDL_WindowHasSurface
...
Fixes https://github.com/libsdl-org/SDL/issues/9034
2024-02-09 17:42:18 -08:00
Xander
a3bfd5329c
Fix broken mingw i686 buildscript
2024-01-28 17:29:33 -08:00
Xander
59d7dd3615
Fix broken mingw x86_64 buildscript
2024-01-28 17:29:33 -08:00
Anonymous Maarten
44a2c4d512
Only retain SDL_* + platform macro's in rename_macros.py
2024-01-26 18:05:49 +01:00
Anonymous Maarten
33f86d81fc
Add all macros from SDL2's SDL_config.h to rename_macros.py
2024-01-26 02:32:00 +01:00
Sam Lantinga
b8c4ea3cd1
Don't add the FIXME for converted macros
...
We're pretty sure this is correct and anyone who runs this script is likely to have source control to see the differences
2024-01-24 12:38:44 -08:00
Sam Lantinga
95a67278d1
Updated documentation after 2654c52d0e
2024-01-24 11:00:13 -08:00
Ozkan Sezer
12b01ef674
rename_macros.py: fix typo for __WIN32__
2024-01-24 20:10:00 +03:00
Anonymous Maarten
31d133db40
Define SDL_PLATFORM_* macros instead of underscored ones ( #8875 )
2024-01-24 01:40:51 +00:00
Sam Lantinga
cd231a65f6
Added SDL_GetJoystickCaps() and SDL_GetGamepadCaps() to get the capabilities of controllers
...
Also added SDL_GAMEPAD_CAP_PLAYER_LED to let the application know if the controller has a visible player LED
2024-01-22 19:23:42 -08:00
Sam Lantinga
fc0c774976
Renamed SDL_ThreadID() to SDL_GetCurrentThreadID()
...
Also renamed SDL_threadID to SDL_ThreadID and made it Uint64 for consistency with other ID types
2024-01-18 08:18:37 -08:00
Sam Lantinga
a2665f54c8
Updated the atomic API for SDL 3.0 naming conventions
...
Fixes https://github.com/libsdl-org/SDL/issues/7388
2024-01-18 04:41:34 -08:00
Sam Lantinga
f224af5ac5
Updated Haptic API for SDL 3.0 conventions
...
Also removed the XInput haptic support since using the haptic API for rumble is no longer supported.
2024-01-18 03:26:11 -08:00
Sam Lantinga
5b3ee51c6c
Updated copyright for 2024
2024-01-01 13:15:26 -08:00
Sylvain
ffd82fb7c4
Add scaleMode to SDL_SoftStretch(), remove SDL_SoftStretchLinear().
2023-12-22 09:13:21 -08:00
Sylvain
5dba04b29b
Remove SDL_{Set,Get}SurfaceScale().
...
Add Scale parameter to SDL_BlitSurfaceScaled() and SDL_BlitSurfaceScaledUnchecked()
(see #8732 )
2023-12-22 02:08:49 -08:00
Sam Lantinga
4bb5e1f0f9
Added migration notes for migrating Steam Input support from SDL2 to SDL3
2023-12-20 14:15:09 -08:00
Ryan C. Gordon
df0fd55891
wikiheaders.pl: README files are no longer in Windows endline format.
2023-11-30 10:10:04 -05:00
Ryan C. Gordon
dd47da8a5c
gamepad: Replace GetNumMappings/GetMappingByIndex with a single function.
...
Now it returns an array and optional count, to match other SDL3 APIs.
2023-11-29 20:50:44 -05:00
Ryan C. Gordon
dfee3f9e92
render: Replaced SDL_RenderFlush with SDL_FlushRenderer.
...
This uses the same `SDL_VerbNoun` format as the rest of SDL3, and also
adds stronger effort to invalidate cached state in the backend, so cooperation
improves with apps that are using lowlevel rendering APIs directly.
Fixes #367 .
2023-11-29 14:24:26 -05:00
Ryan C. Gordon
869257a5c1
SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface.
2023-11-06 19:16:38 -05:00
Sam Lantinga
c2a3112b6f
Added "--substring" to the help for rename_symbols.py
2023-10-23 09:14:54 -07:00
Ryan C. Gordon
9d7c57234a
audio: Cleaned out most remaining `/* */` comments for `//` style.
...
Fully committing to it...!
This left SDL_wave.* alone for now, since there's a ton of comments in there
and this code hasn't changed much from SDL2 so far. But as SDL2 ages out a
little more, I'll likely switch this over, too.
2023-10-18 15:39:01 -04:00
Sam Lantinga
4368f70ff9
Added properties to various SDL objects
...
The following objects now have properties that can be user modified:
* SDL_AudioStream
* SDL_Gamepad
* SDL_Joystick
* SDL_RWops
* SDL_Renderer
* SDL_Sensor
* SDL_Surface
* SDL_Texture
* SDL_Window
2023-10-11 22:38:00 -07:00
Ryan C. Gordon
8745a9949b
add-source-to-projects.pl: Fix adding files in the base src dir.
2023-10-09 19:19:01 -04:00
Ryan C. Gordon
399bc709b7
build-scripts.pl: Added add-source-to-projects.pl
...
This insert files to the Xcode and Visual Studio projects, so you can add
sources to the build without having to find a Mac or Windows machine with
the appropriate tools installed, and manually update four different sets of
projects across them.
This doesn't touch CMake, but you can add files to that with a text editor
(hopefully) without drama.
This, like all Perl code, is fragile. Report bugs and don't push it too hard.
2023-09-22 23:08:46 -04:00
Sam Lantinga
859dc14add
Replaced SDL_GetGamepadBindForAxis() and SDL_GetGamepadBindForButton() with SDL_GetGamepadBindings()
2023-09-13 23:01:28 -07:00
Ryan C. Gordon
ce27363df2
wikiheaders: Sort undocumented functions.
...
Otherwise they appear in random order, which isn't ideal in general, but
also this breaks the wiki/header bridge because it can't produce identical
conversions per-run.
2023-09-12 09:58:10 -04:00
Anonymous Maarten
b00cbd76aa
wikiheaders.pl: create Unsupported.md file with list of functions undocumented in either the headers or the wiki
2023-09-06 15:51:08 -04:00
Anonymous Maarten
e85206ffd8
wikiheaders.pl: add --rev= option to pass revision string
...
This way, git is not required anymore to calculate the git revision
2023-09-04 18:56:00 +02:00
Sam Lantinga
233789b0d1
Audio types have the same naming convention as other SDL endian types, e.g. [S|U][BITS][LE|BE]
...
Native endian types have no LE/BE suffix
2023-09-04 09:48:44 -07:00
Brick
6a73f74b6b
Rebuild full ResamplerFilter (left wing + right wing) at runtime
2023-08-25 08:43:56 -04:00
Brick
fba6e1e3d3
Removed ResamplerFilterDifference
...
It takes 1 extra multiply to calculate the correct interpolation,
but I think the improvement in cache locality (and binary size) outweighs that.
2023-08-25 08:43:56 -04:00
Brick
47fea7f06b
Used fixed-point arithmetic in ResampleAudio
2023-08-21 16:02:54 -04:00
Brick
b9541b9eab
Improved ResampleAudio
...
* filterindex2 was off-by-one
* Generate ResamplerFilter using doubles
* Transpose ResamplerFilter to improve access patterns
2023-08-21 16:02:54 -04:00
Simon McVittie
efe15588d5
Relabel back paddles as left or right
...
The sequence order of the four paddles is not obvious, with SDL and Xbox
controllers swapping the order of P2 and P3 relative to each other.
If we group them into left and right, then it becomes more obvious.
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-08-09 11:03:30 -07:00
Sam Lantinga
b903ccf945
SDL_rwops read/write functions return size_t again
...
The current status is stored in the SDL_rwops 'status' field to be able to determine whether a 0 return value is caused by end of file, an error, or a non-blocking source not being ready.
The functions to read sized datatypes now return SDL_bool so you can detect read errors.
Fixes https://github.com/libsdl-org/SDL/issues/6729
2023-08-07 20:36:21 -07:00
Ryan C. Gordon
e7d56dd0b2
audio: Renamed new API SDL_UnpauseAudioDevice to SDL_ResumeAudioDevice.
2023-08-05 19:20:14 -04:00
Ryan C. Gordon
6567285eae
SDL_migration.cocci: Fix up SDL_(Pause|Unpause)Audio.
2023-07-30 11:56:37 -04:00
luzpaz
65e1d568ef
Fix various typos (docs/build scripts/tests)
2023-07-03 08:35:37 -07:00
Sam Lantinga
f010411492
Rename SDL_strtokr() to SDL_strtok_r()
...
Fixes https://github.com/libsdl-org/SDL/issues/7914
2023-07-03 06:20:06 -07:00
Sam Lantinga
e264bb5178
Rename SDL_PIXELFORMAT_RGB888 and SDL_PIXELFORMAT_BGR888 to SDL_PIXELFORMAT_XRGB8888 and SDL_PIXELFORMAT_XBGR8888 for clarity
...
Fixes https://github.com/libsdl-org/SDL/issues/7903
2023-07-01 17:58:34 -07:00
Sam Lantinga
8da9b22c17
The SDL_WINDOW_SKIP_TASKBAR flag has been replaced by the SDL_WINDOW_UTILITY flag
...
The SDL_WINDOW_UTILITY flag has the same functionality, and is now implemented on Windows.
2023-06-29 21:43:17 -07:00
Sam Lantinga
c065a9b128
Fix some issues caught by check_stdlib_usage.py
2023-06-27 06:19:06 -07:00
Sylvain
70ccf34587
Script to detect use of stdlib function
2023-06-27 04:47:08 -07:00
Sam Lantinga
808d83dd67
Allow specifying APP_PLATFORM and APP_ABI on the command line
2023-06-21 13:49:09 -07:00