Sam Lantinga
16f4e37bb5
Fixed build
2023-03-03 09:49:48 -08:00
Sam Lantinga
e3d90c694c
Make sure the window is valid in SDL_SetKeyboardFocus()
2023-03-03 09:09:11 -08:00
Sam Lantinga
f1c3d3be97
Default to using newer D3D renderers in SDL 3.0
2023-03-02 15:09:57 -08:00
Ryan C. Gordon
8b9a938413
dataqueue: Make thread safe.
...
Each data queue gets its own mutex and each function obtains it.
Fixes #7390 .
2023-03-02 16:35:16 -05:00
Eddy Jansson
91b9ba8c54
Correct typo GetSlectionText -> GetSelectionText
2023-03-02 16:29:18 -05:00
Ryan C. Gordon
f833e005e1
dataqueue: Removed non-public SDL_ReserveSpaceInDataQueue function
...
This wasn't used, and it was just asking for trouble.
2023-03-02 16:09:23 -05:00
Ozkan Sezer
ea824c6d20
hidapi/windows tidy-up.
2023-03-02 21:40:02 +03:00
Sam Lantinga
3bba33932f
Fixed testshape on high DPI displays
...
Since the shape is set based on the pixels in the image, we want the window to have the same number of pixels.
2023-03-02 10:15:14 -08:00
Sam Lantinga
59ca0c8b22
Simplified the testshape example
2023-03-02 10:00:15 -08:00
Sam Lantinga
bd2e2ee7aa
SDL_RenderTexture() and SDL_RenderTextureRotated() take floating point source coordinates
...
See the discussion at https://discourse.libsdl.org/t/sdl-rendercopyf-uses-ints/36732/8
2023-03-02 09:42:32 -08:00
Ozkan Sezer
199a7af296
hidapi/windows: fix build using older toolchains.
2023-03-02 20:21:20 +03:00
Sam Lantinga
c887b55964
Fixed mingw build
2023-03-02 08:58:52 -08:00
Sam Lantinga
a5fba759b3
Get the name, manufacturer and serial number for Bluetooth devices on Windows
...
Adapted from upstream hidapi code
2023-03-02 08:20:38 -08:00
Sam Lantinga
727c7d4e2f
Don't clobber an existing entry with a different version when adding a gamepad mapping
2023-03-01 16:38:48 -08:00
Sam Lantinga
9e14559e80
Print the mapping used for a gamepad in testgamepad
2023-03-01 16:37:56 -08:00
Anonymous Maarten
790612f4f8
cmake: make sdltests_utils static library
2023-03-01 23:41:22 +01:00
Sylvain
ac3fd00018
testautomation_pixels/audio: use SDL_arraysize and fix warnings
2023-03-01 22:15:45 +01:00
Ozkan Sezer
6fc32491c7
testautomation_audio.c: use SDL_arraysize for g_numAudioFormats.
2023-03-01 22:56:56 +03:00
Sam Lantinga
add980efb7
Unfixed spacing
...
From @ozkan: Except for line 2537, all those trailing whitespace are from original code which had left in as-is in case we want to upgrade to a newer version more easily.
2023-03-01 11:19:52 -08:00
Sam Lantinga
2f14b36709
Fixed spacing
2023-03-01 10:02:14 -08:00
Sam Lantinga
cfb96e260b
Fixed spacing
2023-03-01 09:51:27 -08:00
David Carlier
8d24381e7e
SDL_GetSystemRAM completion for Haiku system.
...
using native system_info's api.
2023-03-01 09:50:03 -08:00
Sam Lantinga
d5775f6708
The gamepad event structures caxis, cbutton, cdevice, ctouchpad, and csensor have been renamed gaxis, gbutton, gdevice, gtouchpad, and gsensor.
...
Fixes https://github.com/libsdl-org/SDL/issues/7375
2023-03-01 09:48:28 -08:00
Ozkan Sezer
8d8b3d3a9a
fix testautomation_audio.c after commit f48d0cc
2023-03-01 18:37:56 +03:00
Ryan C. Gordon
f48d0cc164
audio: Remove AUDIO_U16* support.
...
It wasn't heavily used, and you can't use memset to silence a U16 buffer.
Fixes #7380 .
2023-03-01 10:26:01 -05:00
Sam Lantinga
941a603665
Document that SDL_IsScreenSaverEnabled() was renamed SDL_ScreenSaverEnabled()
2023-02-28 15:56:49 -08:00
Sam Lantinga
ebdb320651
Follow the same pattern for releasing the window data in the UIKit driver
...
Possible fix for https://github.com/libsdl-org/SDL/issues/7361
2023-02-28 15:56:49 -08:00
Ryan C. Gordon
5d3234d8ae
docs: Removed bogus file from wiki bridge.
...
That was fixed to not do that again by 7e429a13d3
2023-02-28 13:39:43 -05:00
SDL Wiki Bot
c3d2f5368b
Sync SDL3 wiki -> header
2023-02-28 17:50:11 +00:00
SDL Wiki Bot
3f49e370c8
Sync SDL3 wiki -> header
2023-02-28 17:39:22 +00:00
Ryan C. Gordon
5585a4ac72
Renamed CONTRIBUTING.md to README-contributing.md
...
This lets the wiki bridge pick it up.
2023-02-28 12:38:31 -05:00
Ryan C. Gordon
7b9b20e684
docs: Deleting a bogus file to see if wiki bridge rebuilds it.
2023-02-28 12:31:11 -05:00
SDL Wiki Bot
60127460b0
Sync SDL3 wiki -> header
2023-02-28 17:30:22 +00:00
Ryan C. Gordon
99c38268cd
wikiheaders: Sort pages before listing them in README/FrontPage.md.
2023-02-28 12:28:10 -05:00
Ryan C. Gordon
7745c9b3ae
wikiheaders: Use Windows endlines in the source, Unix in the wiki.
2023-02-28 12:28:10 -05:00
SDL Wiki Bot
260dcb856e
Sync SDL3 wiki -> header
2023-02-28 17:27:14 +00:00
Eddy Jansson
5f5abb6805
Always allocate zt in output of SDL_iconv_string()
...
Before this, the function could not be used on buffers,
as it would not account for the zero-termination unless
it was included in the input.
2023-02-28 09:26:01 -08:00
SDL Wiki Bot
5fb5586233
Sync SDL3 wiki -> header
2023-02-28 17:18:06 +00:00
Sam Lantinga
6aeb07d4c2
Fixed SDL windows getting the maximized state after leaving fullscreen on macOS
2023-02-28 09:03:28 -08:00
Ryan C. Gordon
6d1e14b792
wikiheaders: ignore wiki's README/FrontPage.md
2023-02-28 11:55:19 -05:00
SDL Wiki Bot
90a911b31f
Sync SDL3 wiki -> header
2023-02-28 16:52:06 +00:00
SDL Wiki Bot
af9a2237e3
Sync SDL3 wiki -> header
2023-02-28 16:48:26 +00:00
Ryan C. Gordon
2506676f34
wikiheaders: Bridge README files in the docs directory to wiki.
...
Fixes #6026 .
2023-02-28 11:45:47 -05:00
Sam Lantinga
da134a3039
Fixed locking up the Logitech F310 with the PlayStation controller detection
2023-02-28 08:36:31 -08:00
Sam Lantinga
c824060503
Fixed missing line
2023-02-27 21:08:50 -08:00
Sam Lantinga
a6d8cdf186
Setting a window to non-fullscreen when it's not fullscreen is a no-op
...
Also explicitly reset fullscreen mode when destroying a window, eliminating the need for doing that in SDL_HideWindow(), as that's already taken care of in SDL_OnWindowHidden() normally.
2023-02-27 21:06:05 -08:00
Ryan C. Gordon
a479633455
wikiheaders: fixed wikilinks in Markdown code sections.
2023-02-27 23:08:19 -05:00
Anonymous Maarten
02fede7c8c
cmake: initialize SDL_SHARED and SDL_STATIC from BUILD_SHARED_LIBS
2023-02-28 02:15:39 +01:00
Sam Lantinga
fcc9deb365
Only restore desktop mode when hiding a window if that window was fullscreen
2023-02-27 15:38:48 -08:00
Sam Lantinga
206fa4dafb
Added mapping for DualSense Edge Wireless Controller on Linux
...
This is a mapping when using evdev, not the more advanced HIDAPI support.
2023-02-27 15:19:34 -08:00