Sam Lantinga
836e6c1531
Don't toggle modifier state for repeated keys (thanks @dalawren!)
...
Closes https://github.com/libsdl-org/SDL/pull/9387
2024-05-24 04:44:56 -07:00
Anonymous Maarten
f3695ef34e
VC: don't import Microsoft.CPP.UpgradeFromVC[67]0.props projects
...
Only thing these do is define a _VC80_UPGRADE macro.
2024-05-24 11:13:40 +02:00
Sam Lantinga
9259d532da
isVRHeadset returns true for Pico headsets
2024-05-23 17:39:06 -07:00
Sam Lantinga
89caa88b73
Get the definition for SDL_PropertiesID in SDL_thread.h
2024-05-23 17:14:07 -07:00
Sam Lantinga
a3ab46b707
Fixed mapping the touchpad for the Qanba PS5 controllers like the Qanba Drone 2 Arcade Joystick
...
These controllers are autodetected by the HIDAPI driver, so SDL_GetGamepadTypeFromGUID() should be used to pull the gamepad type out of the GUID.
2024-05-23 16:48:04 -07:00
Sam Lantinga
98a9ca5e32
Added Linux bindings for the Qanba Drone 2 Arcade Joystick
2024-05-23 15:34:38 -07:00
Sam Lantinga
2461bd8648
Removed unnecessary float casts
2024-05-23 15:12:19 -07:00
Semphris
3acca27e95
Dialog: XDG Portals: Remove the file://
URI
2024-05-23 12:54:39 -07:00
Sam Lantinga
6e081eb7dc
Memory leak no more!
2024-05-23 11:26:59 -07:00
Sam Lantinga
156ca356b5
Free any temporary environment memory at SDL_Quit()
...
Fixes https://github.com/libsdl-org/SDL/issues/9860
2024-05-23 11:23:20 -07:00
Cyao
4022682c28
Fix touchid assertion faliure on emscripten
2024-05-23 10:30:24 -07:00
SDL Wiki Bot
66fbbdf46a
Sync SDL3 wiki -> header
2024-05-23 17:09:44 +00:00
SDL Wiki Bot
3e8d8f81b4
Sync SDL3 wiki -> header
2024-05-23 17:04:35 +00:00
Frank Praznik
baacbeb4c4
wayland: Make sure the correct cached window dimensions are used when a config size of 0,0 is received
...
The window may be in a maximized or tiled state, in which case, don't use the floating size.
2024-05-23 11:13:02 -04:00
Frank Praznik
b1061a3ec1
video: Rename 'state_not_floating' to the more descriptive 'tiled'
2024-05-23 10:35:58 -04:00
Frank Praznik
37672f52da
wayland: Simplify resize logic
...
Non-size configuration events are filtered out, so there is no need to enqueue an event when setting the size, as it won't be overwritten in the configure event when only changing state.
2024-05-23 10:35:58 -04:00
scribam
3f1143b4f5
release: fix arm64 Visual Studio build directory
...
[skip ci]
2024-05-23 13:04:35 +02:00
Ryan C. Gordon
2f2c3afb05
SDL_internal: tweaked comment.
2024-05-22 20:55:28 -04:00
Ryan C. Gordon
48ebc829e4
thread: Fix build, if SDL is built without an external C runtime.
...
Fixes #9858 .
2024-05-22 20:46:44 -04:00
Ryan C. Gordon
25024ea295
windows: Before SDL_main has run, use WideCharToMultibyte, not SDL_iconv.
...
Otherwise, this will crash if the app sets its own SDL_malloc allocator, since
SDL_iconv uses SDL_malloc.
WideCharToMultibyte lets us calculate the needed memory for the argv[] string
conversions, and then we use the win32 HeapAlloc() API to get some memory
for it.
Fixes #8967 .
2024-05-22 20:08:15 -04:00
Anonymous Maarten
86b2f441c0
release: create arm64 Visual Studio binaries
...
[skip ci]
2024-05-23 00:13:10 +02:00
SDL Wiki Bot
be5d4e5857
Sync SDL3 wiki -> header
2024-05-22 21:40:15 +00:00
SDL Wiki Bot
6429806dce
Sync SDL3 wiki -> header
2024-05-22 19:47:56 +00:00
Anonymous Maarten
3c00af1ac6
cmake: preseed CMake cache on MSVC to speed up configuration
2024-05-22 21:03:12 +02:00
Ryan C. Gordon
daf5009395
dialog: fixed typo in docs.
2024-05-22 14:26:50 -04:00
Semphris
93a0db597a
Add documentation about dialogs and events
2024-05-22 11:26:03 -07:00
Anonymous Maarten
e10666397e
ci: build simple Android SDL app using gradle
2024-05-22 20:19:18 +02:00
Anonymous Maarten
8954e42bcb
xcode: cmake scripts inside frameworks in side xcframework differ from the top cmake script
2024-05-22 20:17:13 +02:00
Anonymous Maarten
e10207e831
cmake: disallow '#include "SDL.h"'
2024-05-22 20:17:13 +02:00
Ryan C. Gordon
f2e3437311
include: Fixed headers to not break with wikiheaders. This is a hack for now.
...
I broke the "Don't taunt wikiheaders" rule. :)
https://wiki.libsdl.org/SDL3/README/documentation-rules#dont-taunt-wikiheaders
2024-05-22 12:29:30 -04:00
SDL Wiki Bot
b7bb220e60
Sync SDL3 wiki -> header
2024-05-22 15:40:15 +00:00
Ryan C. Gordon
b2ca8fe458
thread: Simplified docs, moved some technical details to a non-wiki comment.
2024-05-22 11:39:43 -04:00
Ryan C. Gordon
b83bb035e6
thread: SDL_CreateThreadWithStackSize is now SDL_CreateThreadWithProperties.
2024-05-22 11:39:43 -04:00
Ryan C. Gordon
0ec716819e
thread: Reworked SDL_CreateThread to be consistent across platforms.
...
Also documented missing and weird bits, rename typedefs to fit SDL standards.
2024-05-22 11:39:43 -04:00
SDL Wiki Bot
983544a53e
Sync SDL3 wiki -> header
2024-05-22 00:41:09 +00:00
SDL Wiki Bot
95aa9a79a9
Sync SDL3 wiki -> header
2024-05-22 00:07:49 +00:00
SDL Wiki Bot
7164ca374e
Sync SDL3 wiki -> header
2024-05-22 00:06:36 +00:00
SDL Wiki Bot
1f0884ffef
Sync SDL3 wiki -> header
2024-05-21 23:59:08 +00:00
Anonymous Maarten
85c87f4140
release: use git archive to get sources
2024-05-22 01:28:44 +02:00
Anonymous Maarten
9b0203d9b1
release: Include pdb in Visual Studio release artifacts + build in C:\temp
2024-05-22 01:28:44 +02:00
Anonymous Maarten
45081db9d4
Build Android prefab in releaser.py script
...
[ci skip]
2024-05-22 01:28:44 +02:00
Frank Praznik
1f89c407e0
win32: Fix maximized windows when leaving fullscreen
...
If a window is fullscreen and the maximized state is requested, it needs to be explicitly entered after leaving fullscreen, or the resulting window will be in the maximized state, but still the size of the non-maximized window.
2024-05-21 18:57:55 -04:00
Anonymous Maarten
2123b84fbe
SDL_test: add --hide-cursor to help
2024-05-21 22:56:29 +02:00
Dragon-Baroque
05fb91c7b4
TESTWM : Option and Keyboard action to ShowCursor and HideCursor
...
In include/SDL3/SDL_test_common.h
Add flag hide_cursor
In src/test/SDL_test_common.c
Handle option --hide-cursor to SDL_HideCursor
Handle Ctrl-h toggle to SDL_HideCursor and SDL_ShowCursor
2024-05-21 13:49:35 -07:00
Frank Praznik
888a45977d
tests: Check the usable bounds for centered window positioning
...
SDL now centers windows according to the usable display bounds, so the window centering test requires an update for the new behavior.
2024-05-21 12:26:40 -04:00
Sam Lantinga
f9260a8470
Added an entry for the 8Bitdo Ultimate Wired Controller
2024-05-20 16:44:45 -07:00
Sam Lantinga
5aecd40683
Try to center windows in the usable bounds if they fit
...
Fixes https://github.com/libsdl-org/SDL/issues/3480
2024-05-20 15:00:26 -07:00
Ryan C. Gordon
78a36830f8
video: Remove MMX codepath from SDL_BlitCopy.
...
It was only used if SSE wasn't supported (available since the Pentium III in
1999), or the data was aligned to 8 bytes but not aligned to 16 bytes.
The likelihood of ever hitting this codepath seems extremely low.
2024-05-20 16:37:41 -04:00
Susko3
9d03ff6c18
Decrement before as the code makes more sense
2024-05-20 11:08:19 -07:00
Susko3
9458dc07dc
Fix double-free on cleanup and general nonsense when deleting fingers
2024-05-20 11:08:19 -07:00