|
7a7980fa
|
2022-10-06T01:12:42
|
|
testnative: fix conversion from `time_t` to `unsigned int`
Emitted by MSVC
|
|
87706895
|
2022-10-06T01:12:18
|
|
testmouse: add explicit int-cast to avoid warning about converting `float` to `int`
Emitted by MSVC
|
|
b771d9be
|
2022-10-06T01:09:32
|
|
tests: avoid MSVC preaching about unsafe functions
|
|
be5f55c4
|
2022-10-07T00:17:25
|
|
watcom: add ENABLE_WERROR option to makefiles
|
|
335c6724
|
2022-10-06T19:17:18
|
|
autotools: add --enable-werror option
|
|
ebae142a
|
2022-10-06T01:05:59
|
|
testhaptic: fix conversion from `size_t` to `int`
Emitted by MSVC
|
|
45da1339
|
2022-10-06T00:39:47
|
|
cmake: don't error on apple when using deprecated declarations
|
|
274ec025
|
2022-10-06T00:31:00
|
|
testautomation: avoid format related warnings by using a few pragma's
ci: enable -Werror to a few platforms
|
|
3c251ec4
|
2022-10-06T01:10:22
|
|
testintersections: fix conversion from `time_t` to `unsigned int`
Emitted by MSVC
|
|
18c776e1
|
2022-10-06T01:02:17
|
|
testspriteminimal: fix conversion from `time_t` to `unsigned int`
Emitted by MSVC
|
|
d04fa0ef
|
2022-10-06T00:30:11
|
|
controllermap: use enum to avoid '-Wmaybe-uninitialized'
Emitted by MinGW:
In function 'WatchJoystick',
inlined from 'SDL_main' at D:/a/SDL/SDL/test/controllermap.c:802:9:
D:/a/SDL/SDL/test/controllermap.c:437:9: warning: 'marker' may be used uninitialized [-Wmaybe-uninitialized]
437 | SDL_SetTextureAlphaMod(marker, alpha);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:/a/SDL/SDL/test/controllermap.c: In function 'SDL_main':
D:/a/SDL/SDL/test/controllermap.c:355:71: note: 'marker' was declared here
355 | SDL_Texture *background_front, *background_back, *button, *axis, *marker;
|
|
a905db9d
|
2022-10-05T23:59:01
|
|
testcustomcursor: fix Wswitch warning by casting the arg to an int
|
|
f3389f13
|
2022-10-06T01:00:58
|
|
testgeometry: fix conversion from 'double' to 'float', possible loss of data
emitted by MSVC
|
|
bb527678
|
2022-10-05T23:56:27
|
|
testgamecontroller: fix -Wshadow warning by renaming global axis+button textures
|
|
57c88655
|
2022-10-05T23:55:59
|
|
automation_main.c: fix -Wformat-zero-length warning due to SDL_SetError("")
|
|
64ea6cef
|
2022-10-02T17:17:31
|
|
SDL_ResetHint() no longer clears the callbacks associated with a hint
Also added SDL_ResetHints() to reset all callbacks, and clarified that SDL_ClearHints() is just used for cleanup at shutdown.
Fixes https://github.com/libsdl-org/SDL/issues/6313
|
|
19ecb64e
|
2022-10-02T10:18:57
|
|
Fixed build
|
|
a00565b8
|
2022-10-02T09:08:39
|
|
Fixed displaying more than 18 buttons
|
|
0d6c4ff6
|
2022-09-29T11:36:07
|
|
testaudioinfo: Initialize deviceName unconditionally
|
|
1ea1a90e
|
2022-09-29T10:41:40
|
|
testaudioinfo: Also test SDL_GetAudioDeviceSpec
|
|
40893821
|
2022-09-29T10:33:07
|
|
coreaudio: Add support for SDL_GetDefaultAudioInfo (#6277)
Co-authored-by: Ethan Lee <flibitijibibo@gmail.com>
Co-authored-by: Ozkan Sezer <sezeroz@gmail.com>
|
|
d843d61c
|
2022-09-28T09:09:21
|
|
Moved test/versioning.sh to build-scripts/test-versioning.sh
Reference Issue #6171.
|
|
2c518747
|
2022-09-27T09:56:02
|
|
Added microsecond timestamp to sensor values for PS4 and PS5 controllers using the HIDAPI driver
|
|
3a6b7c9c
|
2022-09-24T16:55:10
|
|
testiconv: Print the total number of errors at the end
|
|
7312b93d
|
2022-09-22T22:50:28
|
|
Fixed crash if a game controller is disconnected while the connect message is in flight
|
|
c70ffc2a
|
2022-09-19T15:34:17
|
|
Added size_t format specifier test coverage for SDL_snprintf and SDL_sscanf
|
|
c8332948
|
2022-09-18T17:33:04
|
|
tests, watcom: silence lots of W202 warnings from new vulkan headers.
|
|
dd51787e
|
2022-09-08T15:53:25
|
|
Fix SDL_PIXELFORMAT_INDEX1LSB test case
|
|
ac5b9bc4
|
2022-09-14T18:28:35
|
|
Add support for X11 primary selection (#6132)
X11 has a so-called primary selection, which you can use by marking text and middle-clicking elsewhere to copy the marked text.
There are 3 new API functions in `SDL_clipboard.h`, which work exactly like their clipboard equivalents.
## Test Instructions
* Run the tests (just a copy of the clipboard tests): `$ ./test/testautomation --filter Clipboard`
* Build and run this small application:
<details>
```C
#include <SDL.h>
#include <unistd.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
void print_error(const char *where)
{
const char *errstr = SDL_GetError();
if (errstr == NULL || errstr[0] == '\0')
return;
fprintf(stderr, "SDL Error after '%s': %s\n", where, errstr);
SDL_ClearError();
}
int main()
{
char text_buf[256];
srand(time(NULL));
SDL_Init(SDL_INIT_VIDEO);
print_error("SDL_INIT()");
SDL_Window *window = SDL_CreateWindow("Primary Selection Test", SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED, 400, 400, SDL_WINDOW_SHOWN);
print_error("SDL_CreateWindow()");
SDL_Renderer *renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED);
print_error("SDL_CreateRenderer()");
bool quit = false;
unsigned int do_render = 0;
while (!quit) {
SDL_Event event;
while (SDL_PollEvent(&event)) {
print_error("SDL_PollEvent()");
switch (event.type) {
case SDL_QUIT: {
quit = true;
break;
} case SDL_KEYDOWN: {
switch (event.key.keysym.sym) {
case SDLK_ESCAPE:
case SDLK_q:
quit = true;
break;
case SDLK_c:
snprintf(text_buf, sizeof(text_buf), "foo%d", rand());
SDL_SetClipboardText(text_buf);
print_error("SDL_SetClipboardText()");
printf("clipboard: set_to=\"%s\"\n", text_buf);
break;
case SDLK_v: {
printf("clipboard: has=%d, ", SDL_HasClipboardText());
print_error("SDL_HasClipboardText()");
char *text = SDL_GetClipboardText();
print_error("SDL_GetClipboardText()");
printf("text=\"%s\"\n", text);
SDL_free(text);
break;
} case SDLK_d:
snprintf(text_buf, sizeof(text_buf), "bar%d", rand());
SDL_SetPrimarySelectionText(text_buf);
print_error("SDL_SetPrimarySelectionText()");
printf("primselec: set_to=\"%s\"\n", text_buf);
break;
case SDLK_f: {
printf("primselec: has=%d, ", SDL_HasPrimarySelectionText());
print_error("SDL_HasPrimarySelectionText()");
char *text = SDL_GetPrimarySelectionText();
print_error("SDL_GetPrimarySelectionText()");
printf("text=\"%s\"\n", text);
SDL_free(text);
break;
} default:
break;
}
break;
} default: {
break;
}}
}
// create less noise with WAYLAND_DEBUG=1
if (do_render == 0) {
SDL_RenderPresent(renderer);
print_error("SDL_RenderPresent()");
}
do_render += 1;
usleep(12000);
}
SDL_DestroyRenderer(renderer);
SDL_DestroyWindow(window);
SDL_Quit();
print_error("quit");
return 0;
}
```
</details>
* Use c,v,d,f to get and set the clipboard and primary selection.
* Mark text and middle-click also in other applications.
* For wayland under x:
* `$ mutter --wayland --no-x11 --nested`
* `$ XDG_SESSION_TYPE=wayland SDL_VIDEODRIVER=wayland ./<path_to_test_appl_binary>`
|
|
a7fde3f8
|
2022-09-07T01:58:42
|
|
Allow mapping a controller other than the first one
|
|
4018f35e
|
2022-09-07T00:00:27
|
|
Added left and right sensors for Nintendo Joy-Con and Wii controllers
|
|
911524da
|
2022-09-06T03:15:02
|
|
fix DYLIB version inconsistencies and test failures after #6188.
|
|
acf397b4
|
2022-09-05T11:21:13
|
|
Actually, DYLIB_COMPATIBILITY_VERSION shouldn't be updated for a stable point release
@smcv
|
|
cf040f88
|
2022-09-05T16:27:25
|
|
testmouse: Allow drawing rectangles as well as lines
|
|
a9325817
|
2022-09-05T16:37:34
|
|
testplatform: Add LSX and LASX checks
|
|
4e98ba61
|
2022-09-05T08:28:06
|
|
Set DYLIB_COMPATIBILITY_VERSION to DYLIB_CURRENT_VERSION to match autotools
Autotools sets both versions to the same value, so Xcode and CMake need to match for the libraries to be compatible between the different builds.
See these for details:
https://github.com/libsdl-org/sdl12-compat/pull/207
https://github.com/libsdl-org/SDL/issues/2934
https://stackoverflow.com/questions/67055770/usage-of-current-version-and-compatibility-version-on-macos
|
|
cbc0d9fa
|
2022-09-03T21:22:26
|
|
test/versioning.sh also tests configure
|
|
6bcf2c15
|
2022-09-02T15:06:49
|
|
Fixed spinning at a very high framerate
|
|
3cbfd75d
|
2022-08-27T18:55:55
|
|
Re-added the CRC to the joystick guid
This is now used as a crc field in the mapping rather than directly in mapping guids, for better mapping compatibility between versions of SDL.
Added SDL_GetJoystickGUIDInfo() to get device information encoded in a joystick GUID, so that mapping programs can clear the CRC from the GUID when generating mappings.
sort_controllers.py has been updated to extract the CRC from mappings created by older mapping programs and convert it into the new crc field. It will also take the CRC into account when checking for duplicate mappings.
Also regenerated the GUIDs for the PS2/PSP/Vita controller mappings, fixing https://github.com/libsdl-org/SDL/issues/6151
|
|
2ceea460
|
2022-08-21T14:15:06
|
|
cmake: Enable CET compatibility for x86/x64 targets using VS 16.7+
|
|
99e9156f
|
2022-08-16T19:50:59
|
|
testgles2: Fix typo in help text
|
|
222f1a26
|
2022-08-15T22:51:15
|
|
testgles2: Add --threaded option to use a render thread per window
This is helpful for reproducing bugs like #6056
|
|
aaec244c
|
2022-08-10T09:04:17
|
|
Don't run the stdio automated tests if libc isn't available
|
|
d4192850
|
2022-08-10T07:59:12
|
|
Added SDL_ResetHint() to reset a hint to the default value
Resolves question of how to clear an override hint raised by @pionere in https://github.com/libsdl-org/SDL/pull/5309
|
|
73d8d026
|
2022-08-09T22:36:59
|
|
Test: Fix Exp base case for Win32.
Add epsilon to the check.
|
|
3a9295e1
|
2022-08-09T16:02:16
|
|
build-scripts: Removed winrtbuild.*, no longer used.
WinRT/UWP is still supported, but you have to use the VS2019
project files, now.
Fixes #5639.
|
|
87825972
|
2022-08-08T08:22:20
|
|
Added SDL_GameControllerType enumeration for Nintendo Switch Joy-Con controllers
|
|
46f95a7a
|
2022-06-24T00:20:11
|
|
Create dummy PS2 Video driver
|
|
2fa2f9ff
|
2022-07-28T19:22:27
|
|
Greatly improved Nintendo Joy-Con support using the HIDAPI driver
* Added support for mini-gamepad mode for Joy-Con controllers, matching the mapping for hid-nintendo on Linux and iOS 16
* Added the ability to merge left and right Joy-Con controllers into a single Pro-style controller
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_SWITCH_COMBINE_JOY_CONS to control this merging functionality
* Removed the hint SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS
|
|
b8a55407
|
2022-07-24T15:19:02
|
|
testgamecontroller: Add battery reporting
|
|
ac9e8691
|
2022-07-21T14:49:35
|
|
cmake: only build testnative when X11 is available
|
|
7e2a9969
|
2022-07-13T08:57:40
|
|
Added a virtual joystick automated test
Useful to verify https://github.com/libsdl-org/SDL/commit/4fa2653394150140c4d69cf66a78cd83e1175f99 on a big-endian system
|
|
643f9e56
|
2022-07-03T16:20:26
|
|
Rename folder created in test_filesystem
|
|
0a600b1d
|
2022-07-02T00:27:51
|
|
Merge testguid into testautomation (#5873)
|
|
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
|
|
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
|
|
24251fb5
|
2022-06-29T17:40:45
|
|
Fixed checkkeys closing when tapping the screen on a phone
|
|
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
|
|
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
|
|
84d69da4
|
2022-03-20T19:42:06
|
|
Initial SDL_ps2_main implementation
|
|
965c1645
|
2022-06-16T03:40:53
|
|
cmake: let cmake test script make use of the installed cmake scripts
|
|
3e102123
|
2022-06-20T20:51:12
|
|
cmake: also add the recently-added include folder to the public interface
|
|
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*
|
|
5d5488ca
|
2022-06-16T12:41:31
|
|
Fixed test/versioning.sh on macOS
|
|
580416d3
|
2022-06-06T00:02:08
|
|
Initial CMake configuration
|
|
6bd3e0b1
|
2022-06-15T15:58:48
|
|
Test: Check sqrt and atan against the epsilon.
On i686-linux, the `sqrt_regularCases` and `atan_limitCases` tests would
fail as the result was not precise enough.
|
|
4e3a26e2
|
2022-05-04T14:36:49
|
|
Test: Add math test suite to autotools.
|
|
e64acb61
|
2022-05-04T14:25:10
|
|
Test: Fix for-loop for OS/2 in math suite.
|
|
a3a852e9
|
2022-05-04T13:51:42
|
|
Test: Unrolled the array of cases in math suite.
On OS/2, `INFINITY` is a `const double` which cannot be used to
instantiate an array.
|
|
c23216bf
|
2022-05-04T13:20:09
|
|
Test: Removed static from local variables (Math).
Static would break compilation on OS/2.
|
|
6646edf6
|
2022-05-04T13:10:41
|
|
Test: Fix Windows build for math suite.
|
|
d9ff6380
|
2022-05-04T12:51:13
|
|
Test: Add math test suite to Watcom Makefile.
|
|
7389eba9
|
2022-05-04T12:49:25
|
|
Test: Fix C89 declaration and math include.
|
|
b3faebb8
|
2022-05-04T12:40:24
|
|
Test: Add Floor tests to math.
|
|
b72b5d0f
|
2022-05-04T12:39:49
|
|
Test: Add math automation test suite.
|
|
cee47a9e
|
2022-06-15T14:36:13
|
|
Test: Use inexact helper for log10 regular cases.
On ARMv6, the result is not precise enough for this function.
|
|
a52b8580
|
2022-05-27T23:49:42
|
|
Test: Tidy up test descriptions and documentation.
Test function documentation now lists the input(s) and expected output(s).
Descriptions in TestCaseReference were updated.
|
|
4d7f12f6
|
2022-05-25T01:28:03
|
|
Test: Add Atan2 tests to math suite.
|
|
8ebe640a
|
2022-05-25T00:41:06
|
|
Test: Change inexact tests to use an epsilon.
Instead of using `trunc` to check the first ten digits, inexact test now
relies on an epsilon defining an acceptable range for the expected
result to be in.
|
|
62fd6aad
|
2022-05-23T20:12:28
|
|
Test: Add Atan tests to math suite.
|
|
6a6e93bc
|
2022-05-21T23:11:40
|
|
Test: Add +/-0.0 tests to Acos.
|
|
6b4b6d8e
|
2022-05-21T23:01:50
|
|
Test: Add Asin tests to math suite.
|
|
43f6983a
|
2022-05-21T21:51:48
|
|
Test: Add Acos tests to math suite.
|
|
95f6edb9
|
2022-05-21T20:07:14
|
|
Test: Refactor trigonometric tests into a helper.
The precision test of these functions need a special helper, it can also
be used for their arc functions down the line.
|
|
3b9f47b8
|
2022-05-20T21:45:31
|
|
Test: Remove early return in pow test.
|
|
6be430c7
|
2022-05-16T20:54:59
|
|
Test: Add Tan tests to math suite.
|
|
af79b46f
|
2022-05-16T20:34:07
|
|
Test: Add Sin tests to math suite.
|
|
b06eda55
|
2022-05-16T20:02:24
|
|
Test: Fix math suite build on Win32.
The cosine precision test now uses an array of double and the result
gets truncated instead of casted to signed int64.
|
|
adb445ea
|
2022-05-16T18:29:08
|
|
Test: Add Cos tests to math suite.
|
|
a864180c
|
2022-05-15T19:36:30
|
|
Test: Add float header for FLT_RADIX definition.
|
|
7a55fa4e
|
2022-05-15T19:03:53
|
|
Test: Add Scalbn tests to math suite.
|
|
afd81237
|
2022-05-15T17:43:38
|
|
Test: Add Sqrt tests to math suite.
|
|
c389c32d
|
2022-05-15T17:00:12
|
|
Test: Change assertion type in range tests.
Changes SDLTest_AssertPass(...) to SDLTest_AssertCheck(SDL_FALSE, ...)
for failed assertions so the internal counter gets updated properly.
|
|
5ecc75a4
|
2022-05-15T16:30:38
|
|
Test: Add Pow tests to math suite.
|
|
6349ad73
|
2022-05-15T11:52:12
|
|
Test: Add Log10 tests to math suite.
|
|
7041bbaf
|
2022-05-15T11:36:12
|
|
Test: Add Log tests to math suite.
|
|
dd30ff2e
|
2022-05-12T22:19:59
|
|
Test: Add Exp tests to math suite.
|
|
aacb5e17
|
2022-05-11T22:17:18
|
|
Test: Extract range test parameters into defines.
|