Sam Lantinga
80890f3aae
SDL API renaming: SDL_render.h
...
Fixes https://github.com/libsdl-org/SDL/issues/6883
2022-12-28 19:40:25 -08:00
Sam Lantinga
ea0c2f55be
SDL API renaming: *Is* functions
...
Feedback from @icculus:
"IsTablet" uses "is" as a form of "to be" ...like, the actual question is of its nature.
The rest is just a superfluous word in the question and it flows as better English with if (RectEmpty) than if (IsRectEmpty)
Fixes https://github.com/libsdl-org/SDL/issues/6932
2022-12-28 19:40:25 -08:00
Sam Lantinga
66351fd4ba
Replace tri-state functions SDL_EventState(), SDL_GetJoystickEventState(), SDL_GetGamepadEventState(), SDL_ShowCursor()
...
`SDL_QUERY`, `SDL_IGNORE`, `SDL_ENABLE`, and `SDL_DISABLE` have been removed.
SDL_EventState() has been replaced with SDL_SetEventEnabled()
SDL_GetEventState() has been replaced with SDL_EventEnabled()
SDL_GameControllerEventState has been replaced with SDL_SetGamepadEventsEnabled() and SDL_GamepadEventsEnabled()
SDL_JoystickEventState has been replaced with SDL_SetJoystickEventsEnabled() and SDL_JoystickEventsEnabled()
SDL_ShowCursor() has been split into three functions: SDL_ShowCursor(), SDL_HideCursor(), and SDL_CursorVisible()
Fixes https://github.com/libsdl-org/SDL/issues/6929
2022-12-28 17:49:34 -08:00
Sam Lantinga
9b8208c195
Updated add_symbol_to_oldnames
2022-12-28 17:49:34 -08:00
Sam Lantinga
61232de1ab
Sort the initial SDL 3.0 symbols
2022-12-28 14:29:03 -08:00
Sylvain
71eb78e790
X11: fix removing SDL_WINDOW_HIDDEN flags (thanks @zturtleman)
2022-12-28 23:18:00 +01:00
Sam Lantinga
e4e7a8baff
Reset the dynamic API for SDL 3.0
2022-12-28 13:53:06 -08:00
Sam Lantinga
58763b608b
Cancel current CI actions when a PR is updated
2022-12-28 13:10:27 -08:00
Sam Lantinga
16092f58bb
Updated gamepad, joystick, sensor APIs, removing device indices
...
Instead of indexing into an internal list of devices which requires locking, we return a list of device IDs which can then be queried individually.
Reference: https://github.com/libsdl-org/SDL/issues/6889
2022-12-28 13:10:27 -08:00
Sam Lantinga
e40a96155f
Fixed getting the VID/PID of a virtual joystick
2022-12-28 12:51:54 -08:00
Sylvain
639a744ac4
Update README-migration
2022-12-28 12:16:57 -08:00
Sylvain
aa46ff8f4b
Remove SDL_WINDOW_SHOW flag, as redundant with SDL_WINDOW_HIDDEN
2022-12-28 12:16:57 -08:00
Zack Middleton
59a70d568d
Rename SDL_main_impl.h include guard to match the filename
2022-12-28 05:57:10 -08:00
Zack Middleton
e512809246
Fixup PS2/PSP SDL_RunApp()
...
Make PS2/PSP use the mainFunction argument for SDL_RunApp().
Make PSP SDL_RunApp() return the value from mainFunction().
Make PS2 SDL_RunApp() call SDL_SetMainReady() like all other
SDL_RunApp() functions. (It doesn't affect anything for PS2 as
SDL_MAIN_NEEDED isn't defined.)
2022-12-28 05:57:10 -08:00
Sam Lantinga
87a24ba765
The minimal Makefile doesn't really build for any platform
2022-12-27 16:50:18 -08:00
Sam Lantinga
1d80082e8e
Removed old iOS demos
2022-12-27 16:48:55 -08:00
Sam Lantinga
36d4395c97
SDL API renaming: internal functions
2022-12-27 15:05:51 -08:00
Sylvain
25336d053a
Remove underscore for _SDL_iconv_t
...
And change the name, not to have the same for pointer and data
2022-12-27 12:41:09 -08:00
Sylvain Becker
07808d6a03
Remove underscore in guard header defines ( #6922 )
2022-12-27 12:31:12 -08:00
Sam Lantinga
cdbd1be8c6
Allow SDL_oldnames.h to be completely disabled
2022-12-27 12:30:37 -08:00
Sam Lantinga
3db9112ef4
Make sure we match the same way when adding a mapping and looking up a mapping
...
Fixes https://github.com/libsdl-org/SDL/issues/6898
2022-12-27 12:16:46 -08:00
Sylvain
04f2820e07
Remove underscore for some SDL_ builtin function/macros
2022-12-27 11:34:58 -08:00
Sylvain
81cd84f456
Remove reserved underscore SDL_joystick
2022-12-27 11:34:13 -08:00
Sam Lantinga
ab2d007982
More gamepad renaming
2022-12-27 11:31:54 -08:00
Sam Lantinga
58aecf0a54
SDL API renaming: SDL_rect.h
...
Fixes https://github.com/libsdl-org/SDL/issues/6887
2022-12-27 11:01:11 -08:00
Sam Lantinga
a28d1d59be
More gamepad renaming
2022-12-27 10:42:45 -08:00
Sam Lantinga
701e965235
Removed leading underscore in structure names
...
Fixes https://github.com/libsdl-org/SDL/issues/6856
Closes https://github.com/libsdl-org/SDL/pull/6914
Closes https://github.com/libsdl-org/SDL/pull/6915
Closes https://github.com/libsdl-org/SDL/pull/6916
Closes https://github.com/libsdl-org/SDL/pull/6917
Closes https://github.com/libsdl-org/SDL/pull/6918
Closes https://github.com/libsdl-org/SDL/pull/6919
2022-12-27 10:35:53 -08:00
Sam Lantinga
960e9044b3
Fixed test code after gamepad event rename
2022-12-27 10:28:43 -08:00
Sam Lantinga
ad8a6d2b05
Split SDL gamepad internal functions into SDL_gamepad_c.h
2022-12-27 10:23:28 -08:00
Sam Lantinga
15b464747f
WhatsNew.txt should be new features in SDL 3.0
...
docs/README-migration.md will cover API changes and removals since SDL 2.0
2022-12-27 10:06:45 -08:00
Sam Lantinga
5baed331f1
Don't add symbol renaming to WhatsNew.txt
2022-12-27 10:00:10 -08:00
Sam Lantinga
84725c00d8
Make sure we update the cmake test programs as well
2022-12-27 09:56:16 -08:00
Sam Lantinga
659abc721a
SDL API renaming: SDL_gamecontroller.h
...
SDL_gamecontroller.h has been renamed SDL_gamepad.h, and all APIs have been renamed to match.
Fixes https://github.com/libsdl-org/SDL/issues/6885
2022-12-27 09:47:24 -08:00
Sylvain
ab0c5cf07d
Fix compilation
2022-12-27 17:25:31 +01:00
Sam Lantinga
59467ff063
Make it easier to mass rename symbols in the SDL API
2022-12-27 07:31:27 -08:00
Sam Lantinga
c6969df4d7
SDL API renaming: SDL_video.h
...
Fixes https://github.com/libsdl-org/SDL/issues/6880
2022-12-27 06:38:34 -08:00
Sam Lantinga
cc0296c934
SDL API renaming: SDL_surface.h
...
Fixes https://github.com/libsdl-org/SDL/issues/6884
2022-12-27 06:36:39 -08:00
Sam Lantinga
2db699f48e
SDL API renaming: SDL_sensor.h
...
Fixes https://github.com/libsdl-org/SDL/issues/6888
2022-12-27 06:23:39 -08:00
Sam Lantinga
0d54115235
SDL API renaming: SDL_render.h
...
Fixes https://github.com/libsdl-org/SDL/issues/6883
2022-12-27 06:21:13 -08:00
Sam Lantinga
083e436a1a
SDL API renaming: SDL_pixels.h
...
Fixes https://github.com/libsdl-org/SDL/issues/6886
2022-12-27 06:08:31 -08:00
Sylvain
3d063d7295
More renaming SDL_FreeWAV() to SDL_Free()
2022-12-27 14:53:10 +01:00
Sam Lantinga
fc478c1bc0
SDL API renaming: SDL_joystick.h
...
Fixes https://github.com/libsdl-org/SDL/issues/6881
2022-12-27 05:50:46 -08:00
Sylvain Becker
aa0053141b
Remove SDL_VideoInit / Quit. Prefer SDL_SubSytemInit / Quit ( #6913 )
2022-12-27 05:42:48 -08:00
Sam Lantinga
713ba2e31a
SDL API renaming: SDL_audio.h
...
Fixes https://github.com/libsdl-org/SDL/issues/6879
2022-12-27 05:32:55 -08:00
Sam Lantinga
9625fb2832
Documentation cleanup
2022-12-27 05:28:18 -08:00
Sylvain Becker
47170d288e
Don't export SDL_AudioInit/Quit, use SDL_InitSubsystem instead ( #6912 )
...
* Don't export SDL_AudioInit/Quit, use SDL_InitSubsystem instead
* Update README
Co-authored-by: Sam Lantinga <slouken@libsdl.org>
2022-12-27 05:22:22 -08:00
Sylvain
3fb0c8b54a
Remove/Rename SDL_FreeWAV() to SDL_free()
2022-12-27 05:14:52 -08:00
Ozkan Sezer
29ba5f5d64
SDL_thread.h: fix beginthread param of SDL_CreateThreadWithStackSize for win32
2022-12-27 00:10:00 +03:00
Vincent Hamm
5410d361f7
Fix SDL_CreateThreadWithStackSize not passing staacksize with win32 static api
...
(cherry picked from commit 68073c627684ba35c113d0e128af15b5191b42d6)
2022-12-26 11:24:17 -08:00
Sam Lantinga
63724c113b
Removed the vi format comments from the source
...
Vim users can use the [editorconfig plugin](https://github.com/editorconfig/editorconfig-vim ) to automatically set tab spacing for the SDL coding style.
Fixes https://github.com/libsdl-org/SDL/issues/6903
2022-12-26 11:17:23 -08:00