|
98411c0d
|
2022-07-05T06:52:04
|
|
Added include: libkern/OSAtomic.h
When building on macOS without gcc (e.g. clang) where HAVE_GCC_ATOMICS
is not defined, `SDL_AtomicTryLock` will call
`OSAtomicCompareAndSwap32Barrier` which is not yet declared.
Including OSAtomic.h on OSX resolves this error/warning:
SDL_spinlock.c:125:12: error: implicit declaration of function
'OSAtomicCompareAndSwap32Barrier' is invalid in
C99 [-Werror,-Wimplicit-function-declaration]
return OSAtomicCompareAndSwap32Barrier(0, 1, lock);
This was reported in issue #3885 but marked Invalid and closed - possibly
because the default CMake build uses gcc instead of clang.
|
|
6187edd4
|
2022-07-04T23:57:05
|
|
Sync SDL wiki -> header
|
|
fdb86b82
|
2022-07-04T12:48:32
|
|
x11: Don't try to use XInput2 multitouch if not supported.
Fixes #5889.
|
|
b085c182
|
2022-07-04T16:38:05
|
|
make SDL_SetTextInputRect take a pointer to const
The documentation doesn't state that the argument is ever modified,
and no implementation does so currently.
This is a non-breaking change to guarantee as much to callers.
|
|
51f75b8b
|
2022-07-04T16:42:46
|
|
Fix fallback implementations of SDL_strchr and SDL_strrchr for '\0'
strchr and strrchr return a pointer to the first/last occurrence of a
character in a string, or NULL if the character is not found. According
to the C standard, the final null terminator is part of the string, and
it should thus be possible to get a pointer to the final null with
these functions. The fallback implementations of SDL_strchr and
SDL_strrchr would always return NULL if trying to find '\0', and this
commit fixes that.
|
|
fcb99d78
|
2022-07-04T13:42:05
|
|
Sync SDL wiki -> header
|
|
85bbf8ee
|
2022-07-03T12:19:33
|
|
Fixed coment after #endif
|
|
643f9e56
|
2022-07-03T16:20:26
|
|
Rename folder created in test_filesystem
|
|
7d7c5b80
|
2022-06-29T01:26:27
|
|
Improving mkdir creating parents folder
|
|
2a25b69b
|
2022-07-02T20:50:51
|
|
Check if GNC is defined before checking its value to solve warns in msvc
|
|
0a600b1d
|
2022-07-02T00:27:51
|
|
Merge testguid into testautomation (#5873)
|
|
cd79e9c4
|
2022-07-01T14:04:07
|
|
Removed comment text that looks like doxygen commands
|
|
f317d619
|
2022-07-01T13:59:14
|
|
Xbox GDKX support (#5869)
* Xbox GDK support (14 squashed commits)
* Added basic keyboard testing
* Update readme
* Code review fixes
* Fixed issue where controller add/removal wasn't working (since the device notification events don't work on Xbox, have to use the joystick thread to poll XInput)
|
|
0025621b
|
2022-07-01T19:59:06
|
|
Add a default URL in testurl
|
|
391dd0d9
|
2022-07-01T13:35:41
|
|
Don't spin as quickly as possible in the checkkeys rendering loop
|
|
89624485
|
2022-07-01T13:32:56
|
|
Updated the test bitmap font to cover the Latin-1 character set
Based on Marcel Sondaar's font8_8.asm, in the public domain
|
|
e9d5060c
|
2022-07-01T12:56:47
|
|
checkkeys will now render text that is input
Also added test functions for multi-line debug text display
Currently this only supports ASCII, as the font doesn't have the correct Latin-1 characters
|
|
209f457e
|
2022-07-01T10:13:19
|
|
Generate backspaces for the text we're going to replace when committing text
|
|
bdbf90e3
|
2022-07-01T09:17:30
|
|
on-screen keyboard newline is reported as an Enter key
|
|
7ac5d616
|
2022-07-01T08:58:08
|
|
Fixed backspace being delivered after committed text on Android 12
Testing:
Enter "hello ", followed by "?" - the events generated are:
: commitText hello
: Key pressed : scancode 11 = H, keycode 0x00000068 = H modifiers: (none)
: Key released: scancode 11 = H, keycode 0x00000068 = H modifiers: (none)
: Key pressed : scancode 8 = E, keycode 0x00000065 = E modifiers: (none)
: Key released: scancode 8 = E, keycode 0x00000065 = E modifiers: (none)
: Key pressed : scancode 15 = L, keycode 0x0000006C = L modifiers: (none)
: Key released: scancode 15 = L, keycode 0x0000006C = L modifiers: (none)
: Key pressed : scancode 15 = L, keycode 0x0000006C = L modifiers: (none)
: Key released: scancode 15 = L, keycode 0x0000006C = L modifiers: (none)
: Key pressed : scancode 18 = O, keycode 0x0000006F = O modifiers: (none)
: Key released: scancode 18 = O, keycode 0x0000006F = O modifiers: (none)
: Key pressed : scancode 44 = Space, keycode 0x00000020 = Space modifiers: (none)
: Key released: scancode 44 = Space, keycode 0x00000020 = Space modifiers: (none)
: INPUT Text (\x68\x65\x6c\x6c\x6f\x20): "hello "
: finishComposingText
: deleteSurroundingText 1 / 0
: Key pressed : scancode 42 = Backspace, keycode 0x00000008 = Backspace modifiers: (none)
: Key released: scancode 42 = Backspace, keycode 0x00000008 = Backspace modifiers: (none)
: commitText ?
: Key pressed : scancode 225 = Left Shift, keycode 0x400000E1 = Left Shift modifiers: LSHIFT
: Key pressed : scancode 56 = /, keycode 0x0000002F = / modifiers: (none)
: Key released: scancode 56 = /, keycode 0x0000002F = / modifiers: (none)
: Key released: scancode 225 = Left Shift, keycode 0x400000E1 = Left Shift modifiers: (none)
: INPUT Text (\x3f): "?"
: setComposingText , at 1
: EDIT Text (): ""
Previously, the backspace would be delivered after the "?"
|
|
37a517dc
|
2022-06-29T18:10:01
|
|
Re-enable IME text input on Android
In my testing, this results in text edit events followed by text input events. Any ASCII characters will generate scancode events based on a hypothetical US keyboard layout.
Fixes https://github.com/libsdl-org/SDL/issues/3377
|
|
78089e65
|
2022-07-01T13:08:31
|
|
Remove unused internal header SDL_sysevents.h
|
|
3e114872
|
2022-06-30T20:36:45
|
|
joystick: Fix redetection of HIDAPI joysticks after reinitializing
The HIDAPI joystick driver doesn't properly reset the change counter
it uses to track if re-enumeration is needed when the joystick
subsystem is quit and then reinitialized.
The first SDL_Init(SDL_INIT_JOYSTICK) will result in the expected
HIDAPI joysticks appearing, but subsequent calls will result in no
joysticks being enumerated until another HIDAPI joystick is added
or removed from the system.
|
|
4f732197
|
2022-06-30T00:25:26
|
|
Fixed D3D12 renderer not working with batching, and got rid of the vertex buffer size limit
|
|
24251fb5
|
2022-06-29T17:40:45
|
|
Fixed checkkeys closing when tapping the screen on a phone
|
|
0ad65277
|
2022-06-29T17:26:09
|
|
Refactored code to send scancodes for an ASCII on-screen keyboard key
|
|
a054a5f7
|
2022-06-29T01:09:17
|
|
Improve SDL2 main, adding memory card and usb drivers
|
|
6a2e6c82
|
2022-06-28T21:03:16
|
|
Add SDL_HINT_DIRECTINPUT_ENABLED (on by default)
|
|
db7dfece
|
2022-06-28T23:09:28
|
|
cmake: fix name+location of SDL2.dll in configure generated SDL2::SDL2 target
|
|
43555bd1
|
2022-06-28T17:00:20
|
|
regenerated configure script
|
|
1d1fb95a
|
2022-06-28T06:21:45
|
|
Removed double va_end()
|
|
f815580d
|
2022-06-28T13:09:38
|
|
Fix SIGSEV in SDL_error. Re-apply same pattern on this uncompiled code (see #5795)
|
|
d4e6047e
|
2022-06-28T09:46:12
|
|
Fix SIGSEV in SDL_error (After removing the limit on the size of the SDL error message) (see #5795)
|
|
7a02dcf3
|
2022-06-27T18:47:18
|
|
Add note to GDK docs about XCurl.dll
|
|
cddf095a
|
2022-06-27T05:00:43
|
|
'Refactored by Sourcery'
|
|
b6f1c918
|
2022-06-27T17:44:55
|
|
Fixed Watcom C build
|
|
cbd01874
|
2022-06-27T16:59:50
|
|
Removed the limit on the size of the SDL error message
Also added SDL_GetOriginalMemoryFunctions()
Fixes https://github.com/libsdl-org/SDL/issues/5795
|
|
f25b4b27
|
2022-06-27T16:57:21
|
|
Style: Flip `if` statement.
|
|
6c536afd
|
2022-06-27T15:43:17
|
|
Fix C89 declaration for macOS modules.
Since Clang 14, `-Wdeclaration-after-statement` is enforced on every
standard.
|
|
e4a80875
|
2022-06-24T16:43:20
|
|
Initial Audio driver
|
|
97239176
|
2022-06-25T23:33:53
|
|
Use proper header for OpenBSD PPC CPU detection
|
|
0a9a0a79
|
2022-06-27T17:20:12
|
|
Sync SDL wiki -> header
|
|
3b191580
|
2022-06-27T17:19:39
|
|
Windows GDK Support (#5830)
* Added GDK
* Simplfied checks in SDL_config_wingdk.h
* Added testgdk sample
* Added GDK readme
* Fixed error in merge of SDL_windows.h
* Additional GDK fixes
* OpenWatcom should not export _SDL_GDKGetTaskQueue
* Formatting fixes
* Moved initialization code into SDL_GDKRunApp
|
|
314bb5a1
|
2022-06-27T14:45:14
|
|
Fixed bug #5850: Android EGL_BAD_ACCESS because of viewport command while turning the screen off/on.
|
|
7fd46ec5
|
2022-06-18T17:40:53
|
|
Initial PS2_Joystick implementation
|
|
84d69da4
|
2022-03-20T19:42:06
|
|
Initial SDL_ps2_main implementation
|
|
1f3ae752
|
2022-06-18T11:54:23
|
|
Add ps2_drivers dependency
Fix CI
|
|
b2f07d94
|
2022-06-26T15:53:13
|
|
Vita: create rendertarget color surface with same format as texture. Fixes #5844
|
|
ebe4f47f
|
2022-06-26T19:04:25
|
|
Fixed __VA_ARGS__ in gcc when no args
|
|
51c6488f
|
2022-06-26T18:47:34
|
|
Add support for SDL_render_d3d12.c to compile in C++ mode
|
|
fa39f735
|
2022-06-26T23:34:30
|
|
cmake: add generated files to a custom target (#5851)
This way, headers are only generated once .
|
|
787dc260
|
2022-06-24T20:37:20
|
|
autotools: properly enable the version static assertions
SDL doesn't use automake, therefore instead of AC_DEFINE_UNQUOTED
manually add the defines to EXTRA_CFLAGS.
|
|
76f40e2b
|
2022-06-24T14:41:35
|
|
cmake: remove stray debug line
|
|
ca309363
|
2022-06-24T14:41:06
|
|
cmake: check and use clock_gettime by default on android
|
|
118a2189
|
2022-06-23T16:07:35
|
|
build-scripts/wikiheaders.pl: ignore the 'FrontPage' wiki pages.
|
|
bd496961
|
2022-06-23T08:18:44
|
|
cmake: use CMAKE_CURRENT_BINARY_DIR instead of CMAKE_BINARY_DIR (#5834)
* Update install directory to match generated
https://github.com/libsdl-org/SDL/blob/main/CMakeLists.txt#L3122
Sets `SDL2Config.cmake` to `CMAKE_BINARY_DIR`, whereas the install file tries to find it from a different location.
* cmake: use CMAKE_CURRENT_BINARY_DIR instead of CMAKE_BINARY_DIR
* ci: test SDL included as a cmake subproject
Co-authored-by: Anonymous Maarten <anonymous.maarten@gmail.com>
|
|
2f321fb7
|
2022-06-16T03:27:52
|
|
cmake: disable UNIX_SYS by default for Android
This force disables SDL_OSS, SDL_ALSA, SDL_JACK, SDL_ESD,
SDL_PIPEWIRE, SDL_ARTS, SDL_NAS, SDL_SNDIO, SDL_LIBSAMPLERATE,
SDL_RPATH, SDL_CLOCK_GETTIME and SDL_X11.
|
|
6dcb2868
|
2022-06-16T19:53:58
|
|
cmake: avoid use of possible non-available XEXT_LIB
|
|
78a37516
|
2022-06-16T16:38:58
|
|
cmake+ci: fix+test sdl2-config + sdl2.pc for all supported platforms
|
|
c61367c2
|
2022-06-16T04:14:52
|
|
cmake: do list(APPEND SDLMAIN_SOURCES)
|
|
965c1645
|
2022-06-16T03:40:53
|
|
cmake: let cmake test script make use of the installed cmake scripts
|
|
3617691f
|
2022-06-16T03:37:05
|
|
cmake: install Android.mk files for ndk-build
This allows including SDL2 with ndk-build using
NDK_MODULE_PATH + import-module
An install tree looks like:
```
`-- share
|-- aclocal
| `-- sdl2.m4
|-- licenses
| `-- SDL2
| `-- LICENSE.txt
`-- ndk-modules
|-- SDL2
| `-- Android.mk
|-- SDL2-static
| `-- Android.mk
|-- SDL2main
| `-- Android.mk
`-- SDL2test
`-- Android.mk
```
The generated `/share/ndk-modules/SDL2/Android.mk` contains:
```
LOCAL_PATH := $(call my-dir)
_IMPORT_PREFIX := $(LOCAL_PATH)/../../..
include $(CLEAR_VARS)
LOCAL_MODULE := SDL2
LOCAL_SRC_FILES := $(_IMPORT_PREFIX)/lib/libSDL2.so
LOCAL_CPP_FEATURES := rtti exceptions
LOCAL_EXPORT_C_INCLUDES := ${_IMPORT_PREFIX}/include\
${_IMPORT_PREFIX}/include/SDL2
include $(PREBUILT_SHARED_LIBRARY)`
```
|
|
b3159714
|
2022-06-16T03:30:34
|
|
cmake: set HAVE_STATIC_PIC for correct summary
|
|
de409d2a
|
2022-06-16T03:28:30
|
|
cmake: remove spurious UNIX_SYS in dep_option
|
|
3b0c86a3
|
2022-06-23T01:14:56
|
|
Merge pull request #5835 from fjtrujy/psp/improveJoystickDriver
[PSP] Improve Joystick driver
|
|
5f4e9fb9
|
2022-06-21T02:26:49
|
|
cmake: use add_custom_command to copy include files
Otherwise, the make program would not rebuild when a header got changed
|
|
485b1037
|
2022-06-21T01:30:50
|
|
cmake: copy all headers to the build directory and exclusively use that
|
|
3e102123
|
2022-06-20T20:51:12
|
|
cmake: also add the recently-added include folder to the public interface
|
|
4ad4fe67
|
2022-06-20T20:47:21
|
|
cmake: install generated SDL_config.h
The generated SDL_config.h recently changed location, so update the install.
|
|
2b41f497
|
2021-11-18T01:09:45
|
|
Improve Joystick removing semaphores
|
|
c3a5e4aa
|
2022-06-22T00:54:03
|
|
Adding GetGamepadMapping to Vita Joystick driver
|
|
7adb08a7
|
2022-06-22T01:37:00
|
|
fixed SDL_BlitMap typedef redefinition errors
|
|
12b371ee
|
2022-06-21T14:49:00
|
|
x11: Don't send diplay-add events for displays connected at init time.
Reference Issue #4977.
|
|
c11bdeeb
|
2022-06-21T13:28:14
|
|
wayland: Round fractional backbuffer sizes halfway away from zero
Use SDL_lroundf() to round fractional backbuffer sizes halfway away from zero, as this is the rounding method recommended by the forthcoming Wayland fractional scaling protocol.
|
|
ff735b3c
|
2022-06-20T18:29:52
|
|
SDL_Surface: don't implicitly declare struct SDL_BlitMap.
It's just an opaque type, but it's more clear to have it typedef'd outside
the containing struct.
Fixes #5828.
|
|
d460000b
|
2022-06-20T19:29:13
|
|
cmake: use add_definitions for compatibility with cmake 3.0
|
|
9914e87f
|
2022-06-20T12:53:10
|
|
Also send DPI change when expected resize.
|
|
af733c7a
|
2022-06-20T02:26:40
|
|
Fix DPI-raised SDL_WINDOWEVENT_SIZE_CHANGED with event callback.
Move the sending of this event down so stuff like calling SDL_GL_GetDrawableSize() from a callback reports the new size instead of the old one.
|
|
2316e568
|
2022-06-19T11:32:10
|
|
SDL_windows.h: match WINVER value to _WIN32_WINNT.
|
|
22a29321
|
2022-06-19T11:32:10
|
|
tweak _WIN32_WINNT value for shellscalingapi.h present but no d3d12
|
|
bdcdbfc7
|
2022-06-19T11:04:24
|
|
Enable D3D12 detection when using mingw-w64 with cmake too
c.f.: autotools commit 59fb7acbf7af9d64a2d5432bb6677585a0ddd50a
|
|
48a23296
|
2022-06-19T00:15:03
|
|
wikiheaders: Strip `[[wiki hyperlink]]` from See Also fields.
|
|
abe38bca
|
2022-06-18T13:08:58
|
|
Support SDL_AUDIODRIVER set to "dsound", which was used by SDL 1.2
Fixes https://github.com/libsdl-org/SDL/issues/5818
|
|
a8d41b3b
|
2022-06-18T21:51:32
|
|
check for shellscalingapi.h presence instead of WINVER >= 0x0603
|
|
5f6d0abe
|
2022-06-18T12:57:27
|
|
SDL_SendEditingText() has int parameters, so use that type for parameter calculation
We might want to use ssize_t as @Guldoman suggested, but that's a larger internal API change, and still requires casting of the SDL_utf8strnlen() result.
Fixes https://github.com/libsdl-org/SDL/pull/5821
|
|
00b95e98
|
2022-06-18T16:59:35
|
|
Fix read of uninitialised variable
If the condition (dbus->message_iter_get_arg_type(&sub) == DBUS_TYPE_STRING) is false, subtext is not initialised.
|
|
d51a8f53
|
2022-06-18T14:25:11
|
|
cmake: freebsd: Fix -Wformat warning during tests build
Without using <inttypes.h>, SDL_PRIx64 will expand to llx, but on 64-bit
FreeBSD platforms (u)int64_t is `(usigned) long`:
SDL_test_memory.c:261:77: error: format specifies type 'unsigned long long' but the argument has type 'Uint64' (aka 'unsigned long') [-Werror,-Wformat]
This commit updates config_minimal.h to also assume presence of inttypes.h
for everything except old MSVC.
|
|
12f14bdb
|
2022-06-18T07:02:38
|
|
Fixed digit count in sscanf, e.g. "%1x"
|
|
90658975
|
2022-06-18T06:53:05
|
|
Added test for digit count in sscanf, e.g. "%1x"
|
|
28ecdc6b
|
2022-06-18T06:52:46
|
|
No need to cast from char* to const char*
|
|
53e30705
|
2022-06-18T06:52:16
|
|
List the available tests if the filter didn't match
|
|
e7ad511b
|
2022-06-18T13:01:02
|
|
cmake: fix location of include dir for SDL2 VC sdk
|
|
eb7e29a8
|
2022-06-17T17:43:14
|
|
Fixed crash when the joystick product name isn't available
|
|
83b76617
|
2022-06-17T17:35:52
|
|
build-scripts/wikiheaders.pl: ignore "Category" wiki pages.
|
|
20c622f0
|
2022-06-17T14:39:50
|
|
build-scripts/wikiheaders.pl: Allow a wiki preamble.
This is so we can have everything in SDL_net (etc) start with a
"This is not part of the core SDL API" message.
|
|
adc68758
|
2022-06-17T10:22:28
|
|
Added SDL_copyp to avoid size mismatch when copying values (thanks @1bsyl!)
Closes https://github.com/libsdl-org/SDL/pull/5811
|
|
b0e827fb
|
2022-06-17T07:55:33
|
|
Enable improved rumble emulation on DualSense(tm) Wireless Controllers with firmware version 2.24 and newer
|
|
b19099d5
|
2022-06-16T19:59:57
|
|
cmake: use find_package(SampleRate) to find samplerate + allow targets
|
|
59fb7acb
|
2022-06-16T15:46:53
|
|
Enable D3D12 detection when using mingw-64
|
|
1eb247fa
|
2022-06-16T15:44:18
|
|
Fixed building D3D12 renderer with latest mingw-64
|