Commit Graph

1591 Commits

Author SHA1 Message Date
Wes Lord 8663bd69ab Add docstrings to SDL_audio.h 2025-06-01 23:23:12 -07:00
Wes Lord 41a2aaa838 Add docstrings to SDL_system.h 2025-06-01 23:23:12 -07:00
Wes Lord 2899106f6d Add docstrings to SDL_log.h 2025-06-01 23:23:12 -07:00
Wes Lord ed95b31dc4 Add docstrings to SDL_stdinc.h 2025-06-01 23:23:12 -07:00
Wes Lord 3166590c70 Add docstrings to SDL_hidapi.h 2025-06-01 23:23:12 -07:00
Wes Lord f270584153 Add docstrings to SDL_keyboard.h 2025-06-01 23:23:12 -07:00
Wes Lord 52d4535dc8 Add docstrings to SDL_metal.h 2025-06-01 23:23:12 -07:00
Wes Lord a62093b57a Add docstrings to touch, controller & joystick headers 2025-06-01 23:23:12 -07:00
Wes Lord f1873e7592 Add docstrings to SDL_surface.h & SDL_video.h 2025-06-01 23:23:12 -07:00
Wes Lord f23c883e72 Add docstrings to SDL_rect.h 2025-06-01 23:06:10 -07:00
Ozkan Sezer 157f894d5d don't prototype strdup() for __clang_analyzer__ case in windows builds.
Fixes:  https://github.com/libsdl-org/SDL/issues/12948.
(cherry picked from commit 17bba029ba)
2025-05-04 20:47:28 +03:00
SDL Wiki Bot 916ddb1ef8 Sync SDL2 wiki -> header
[ci skip]
2025-04-22 21:18:56 +00:00
Sam Lantinga 1c75cb4f8a Revert "Sync SDL2 wiki -> header"
This reverts commit 26e946ef08.

Stop it Skynet!
2025-04-22 14:17:22 -07:00
SDL Wiki Bot 26e946ef08 Sync SDL2 wiki -> header
[ci skip]
2025-04-22 17:22:42 +00:00
Petar Popovic 035518d065 SDL_BlitSurface() comment: only dstrect is modified in function 2025-04-22 10:22:27 -07:00
Ozkan Sezer bfab0a968f SDL_cpuinfo.h: only include immintrin.h for x86 targets.
Reference issue: https://github.com/libsdl-org/SDL_image/issues/537
Reference issue: https://github.com/libsdl-org/SDL_mixer/issues/648
2025-04-03 18:55:04 +03:00
SDL Wiki Bot fc536dcb7e Sync SDL2 wiki -> header
[ci skip]
2025-03-12 19:23:45 +00:00
SDL Wiki Bot 22a87a22ca Sync SDL2 wiki -> header
[ci skip]
2025-03-07 17:02:06 +00:00
SDL Wiki Bot 52ac07d327 Sync SDL2 wiki -> header
[ci skip]
2025-02-25 15:55:15 +00:00
Tomasz Pakuła 0809be4ec5 [SDL2] Add SDL_HINT_JOYSTICK_HAPTIC_AXES
Allows users to overwrite the number of haptic axes defined for a given
joystick. Also supports a "wildcard" VID:PID of 0xFFFF/0xFFFF
2025-02-25 07:54:59 -08:00
Cameron Gutman 92cadaf917 keyboard: Fix comment regarding implicit calls to SDL_StartTextInput()
It was always done inside SDL_VideoInit().
2025-02-23 19:00:32 -06:00
Sam Lantinga 5330041ea9 Updated to version 2.33.0 for development 2025-02-08 09:15:11 -08:00
Sam Lantinga 7a44b1ab00 Updated to version 2.32.0 for release 2025-02-08 09:10:22 -08:00
Sam Lantinga 3e97d41da4 Updated to version 2.31.1 for RC build 2025-02-08 08:56:53 -08:00
Tomasz Pakuła 529ed102fc Translate conditional effect direction instead of hardcoding it to 0
Provious code wrongly assumed that direction is not an important part
of conditional effect. Moreover, if there's need to hardcode polar
direction, the default should be 0x4000 (north).

For one axis affects, a direction of 0 means complete lack of force, if
a FFB-enabled device takes direction into force calculation. A sine function
graph can be used to represent the resulting forces where X is the input
direction and Y is the force multiplier (360 degrees equals to 1).

This fixes conditional effect playback on Moza Racing devices, which do
not ignore direction field.
2025-01-20 16:52:11 -08:00
SDL Wiki Bot 220a23dad2 Sync SDL2 wiki -> header
[ci skip]
2025-01-15 15:27:42 +00:00
SDL Wiki Bot aa9b4ec894 Sync SDL2 wiki -> header
[ci skip]
2025-01-11 16:25:41 +00:00
SDL Wiki Bot 9dc8c82082 Sync SDL2 wiki -> header
[ci skip]
2025-01-03 13:15:22 +00:00
Sam Lantinga 2b5b8fdbd5 Updated copyright for 2025 2025-01-01 07:47:53 -08:00
Ozkan Sezer 51570d9257 build system: disable 3dNow! support by default
Closes: https://github.com/libsdl-org/SDL/issues/11472.
2024-11-17 17:55:32 +03:00
Sam Lantinga f1a3a18c1e Removed SDL_HINT_ENABLE_STEAM_CONTROLLERS
This was only respected on Steam Link hardware, which now uses SDL3 where it has been replaced by SDL_HINT_JOYSTICK_HIDAPI_STEAM.
2024-11-08 15:23:31 -08:00
Zack Middleton 761ea32b74 Fix SDL_PRIs64 to use standard PRId64
PRIs64 doesn't exist in C standards.

(cherry picked from commit 8a2cac7aaa)
2024-11-08 12:40:50 +03:00
Ryan C. Gordon 67b537cef4
.wikiheader-options: Treat SDL int types (Uint64, etc) as API prefixes.
This makes any reference to them in the docs link to their wiki pages.

Also fixup the integer type documentation, so the SDL2 wiki _has_ actual
pages for them.  :)
2024-11-01 23:52:03 -04:00
SDL Wiki Bot 15bc3f25ee Sync SDL2 wiki -> header
[ci skip]
2024-11-01 19:42:53 +00:00
dv-senna 478dff3585 SDL_vulkan.h: undefine VK_DEFINE_HANDLER and VK_DEFINE_NON_DISPATCHABLE_HANDLE
Allows including vulkan.hpp in user code in C++ before SDL_vulkan.h w/o errors.
Fixes:  https://github.com/libsdl-org/SDL/issues/11328 .

(cherry picked from commit 149ecffd6f)
2024-10-29 20:35:10 +03:00
SDL Wiki Bot 96e7306a7a Sync SDL2 wiki -> header
[ci skip]
2024-10-27 21:41:54 +00:00
Jordan Christiansen a22baafcf4 docs: Explain events for already plugged in controllers 2024-10-27 14:41:06 -07:00
SDL Wiki Bot bcf1397e33 Sync SDL2 wiki -> header
[ci skip]
2024-10-20 01:02:07 +00:00
SDL Wiki Bot 1af0b39833 Sync SDL2 wiki -> header
[ci skip]
2024-10-20 00:51:30 +00:00
SDL Wiki Bot 4ca7a19348 Sync SDL2 wiki -> header
[ci skip]
2024-10-19 18:04:39 +00:00
Ozkan Sezer a976f7f71b SDL_stdinc.h: provide a prototype for strdup for __clang_analyzer__ case
Because strdup is not ANSI but POSIX, and its prototype might be hidden..

Reference issue: https://github.com/libsdl-org/SDL/issues/11219.

(cherry picked from commit 3ebfdb04be)
2024-10-16 22:03:50 +03:00
Sam Lantinga da4608ed03 Fixed typo in SDL_audio.h 2024-10-10 08:49:41 -07:00
Sam Clegg 3deb07ea39 [emscripten] Fixes for data addresses above 2gb
This includes both wasm64 and wasm32 when addressing more than 2gb of
memory.

Fixes: #9052
2024-10-08 16:35:58 -04:00
SDL Wiki Bot c43b976e5b Sync SDL2 wiki -> header 2024-09-21 13:17:38 +00:00
SDL Wiki Bot ea820edc62 Sync SDL2 wiki -> header 2024-09-10 15:35:30 +00:00
Sam Lantinga 2834d8b3b7 Revert "Sync SDL2 wiki -> header"
This reverts commit f23cc950f5.

This edit was incorrect.
2024-09-04 09:15:20 -07:00
Ryan C. Gordon 155c3bb0a3
SDL_GLattr: formatted wiki documentation to be wikiheaders-friendly.
Reference https://github.com/libsdl-org/sdlwiki/issues/544
2024-08-12 01:23:12 -04:00
Sam Lantinga 8f5d3ca57d Added SDL_CreateRenderer to the "see also" for SDL_RenderPresent() 2024-08-05 07:58:02 -07:00
SDL Wiki Bot eee439debe Sync SDL2 wiki -> header 2024-07-29 19:46:06 +00:00
Ryan C. Gordon 0ba3d9862d SDL_RWFromFile: On Apple platforms, offer a hint to not look in resource dirs.
Fixes #8403.
2024-07-29 15:45:03 -04:00