Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Expose separate keyboard and mouse grab support | Cameron Gutman | 2021-01-26 | 1 | -32/+161 |
| | | | | | | | | | | | | This adds SDL_SetWindowKeyboardGrab(), SDL_GetWindowKeyboardGrab(), SDL_SetWindowMouseGrab(), SDL_GetWindowMouseGrab(), and new SDL_WINDOW_KEYBOARD_GRABBED flag. It also updates the test harness to exercise this functionality and makes a minor fix to X11 that I missed in https://hg.libsdl.org/SDL/rev/02a2d609369b To fit in with this new support, SDL_WINDOW_INPUT_CAPTURE has been renamed to SDL_WINDOW_MOUSE_CAPTURE with the old name remaining as an alias for backwards compatibility with older code. | ||||
* | minor autotools build system updates. | Ozkan Sezer | 2021-01-23 | 2 | -2/+2 |
| | |||||
* | Fix declarations after statement | Sylvain Becker | 2021-01-19 | 1 | -11/+15 |
| | |||||
* | Add basic testgles2_sdf program to demonstrate sign distance field with ↵ | Sylvain Becker | 2021-01-19 | 4 | -0/+805 |
| | | | | opengles2 | ||||
* | testgamecontroller: log which controller the event came from | Sam Lantinga | 2021-01-13 | 1 | -4/+6 |
| | |||||
* | Updated copyright for 2021 | Sam Lantinga | 2021-01-02 | 69 | -69/+69 |
| | |||||
* | minor update to test/acinclude.m4 (pkg.m4) | Ozkan Sezer | 2020-12-30 | 1 | -3/+3 |
| | |||||
* | testsem.c: fix -Wmissing-braces warnings. | Ozkan Sezer | 2020-12-24 | 1 | -2/+2 |
| | |||||
* | Atomic test: Fix use after free | Joel Linn | 2020-12-23 | 1 | -8/+2 |
| | | | | | | SDL_SemPost() was called by the FIFO threads after the semaphore was freed because the main thread actually synchronized on the `writerRunning`/`readersRunning` count and not the semaphores itself. | ||||
* | Semaphore test: Add overhead tests. | Joel Linn | 2020-12-23 | 1 | -2/+130 |
| | |||||
* | Semaphore test: Put test into separate function. | Joel Linn | 2020-12-23 | 1 | -38/+60 |
| | |||||
* | test/Makefile.os2: add warning switches to CFLAGS. | Ozkan Sezer | 2020-12-24 | 1 | -0/+1 |
| | |||||
* | testvulkan.c: fix -Wmissing-braces warnings. also fix whitespace. | Ozkan Sezer | 2020-12-24 | 1 | -26/+26 |
| | |||||
* | testgesture.c: comment out unused drawLine() | Ozkan Sezer | 2020-12-24 | 1 | -0/+2 |
| | |||||
* | testatomic.c: fix warnings due to SDL_AtomicDecRef() use | Ozkan Sezer | 2020-12-24 | 1 | -3/+3 |
| | |||||
* | Enable PS5 enhanced functionality for testgamecontroller | Sam Lantinga | 2020-12-22 | 1 | -0/+1 |
| | |||||
* | Set the pad lights on the PS5 controller corresponding to the player index | Sam Lantinga | 2020-12-22 | 1 | -0/+8 |
| | | | | Also allow setting the player index from testgamecontroller using the number keys | ||||
* | CMakeLists.txt: sync DYLIB_CURRENT_VERSION to Xcode project | Ozkan Sezer | 2020-12-22 | 1 | -7/+37 |
| | |||||
* | Updated SDL to version 2.0.15 for development | Sam Lantinga | 2020-12-22 | 1 | -37/+7 |
| | |||||
* | regenerated configure | Ozkan Sezer | 2020-12-22 | 1 | -25/+3 |
| | |||||
* | acinclude & sdl2.m4 updates: | Ozkan Sezer | 2020-12-22 | 1 | -4/+4 |
| | | | | | | | | - acinclude/alsa.m4, esd.m4: Ran through autoupdate to replace several AC_TRY_[COMPILE|LINK|RUN] with corresponding AC_???_IFELSE , so that autoconf-2.70 doesn't warn. - sdl2.m4: Ditto. - test/acinclude.m4 (sdl2): Ditto. | ||||
* | sdl2.m4 updates: | Ozkan Sezer | 2020-12-22 | 1 | -27/+5 |
| | | | | | | | - remove HP/UX 9 (%@#!) support - change fopen() mode from "a" to "w" in test code. - bump its serial num to 2. - test/acinclude.m4: same sdl2.m4 updates. | ||||
* | test/Makefile.os2: wlib must run case-sensitively. | Ozkan Sezer | 2020-12-21 | 1 | -1/+1 |
| | |||||
* | Fixed circular dependency problem when building in the test directory | Sam Lantinga | 2020-12-20 | 1 | -1/+2 |
| | |||||
* | tests: regenerate configure using autoconf patched for AC_PATH_X11 | Ozkan Sezer | 2020-12-18 | 1 | -7/+37 |
| | | | | | | | | | | Specifically this patch which does not invoke _AC_PATH_X_XMKMF and _AC_PATH_X_DIRECT internal autoconf routines when cross-compiling: http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=33c3a47c04ab70a4dd54963fe433a171bc03747f Without this, CFLAGS would brokenly have system include paths like -I/usr/include/X11 when cross-compiling e.g. for windows. (And it also resulted in annoying imake crashes for my setup...) | ||||
* | test/acinclude.m4: rename SDL_CONFIG to SDL2_CONFIG, regenerate configure | Ozkan Sezer | 2020-12-15 | 2 | -43/+43 |
| | |||||
* | minor cleanups to configure.ac to reduce autoconf-2.70 warnings a bit. | Ozkan Sezer | 2020-12-14 | 2 | -7/+6 |
| | | | | | | configure output is practically unchanged. there are still lots of AC_TRY_COMPILE/AC_TRY_LINK replacements needed to really eliminate the warnings, but that's for another time. | ||||
* | fix bug #5253: handle NULL title or message fields in SDL_MessageBoxData | Ozkan Sezer | 2020-12-10 | 1 | -0/+18 |
| | | | | | | | | | | | | | | | - SDL_video.c (SDL_ShowMessageBox): replace messageboxdata, set title or message field to "" if either of them is NULL. - SDL_video.c (SDL_ShowSimpleMessageBox): set title or message to "" if either of them is NULL for EMSCRIPTEN builds. - SDL_bmessagebox.cc: add empty string check along with NULL check for title and message fields. - SDL_windowsmessagebox.c (AddDialogString): remove NULL string check - SDL_windowsmessagebox.c (AddDialogControl): add empty string check along with the NULL check. - SDL_x11messagebox.c: revert commit 4743e38c51cb - SDL_os2messagebox.c: revert commit 2cbc1bc6c207 - test/testmessage.c: Add NULL title and NULL message tests. | ||||
* | Allow background input when testing game controllers | Sam Lantinga | 2020-12-04 | 1 | -0/+1 |
| | |||||
* | Remember to close the game controller when we're done with it | Sam Lantinga | 2020-11-27 | 1 | -0/+2 |
| | |||||
* | Open and test all connected controllers | Sam Lantinga | 2020-11-27 | 1 | -71/+155 |
| | |||||
* | Some controllers don't always reset their triggers to zero when they are ↵ | Sam Lantinga | 2020-11-25 | 1 | -6/+8 |
| | | | | released (e.g. Xbox One S in Bluetooth mode), so only trigger rumble if the trigger is pulled halfway or more. | ||||
* | Automatically switch to testing a new controller when it's plugged in | Sam Lantinga | 2020-11-24 | 1 | -8/+10 |
| | |||||
* | Fixed bug 5335 - Patch: enable joystick/haptic/evdev support by default on ↵ | Sam Lantinga | 2020-11-23 | 1 | -13/+1 |
| | | | | | | | | | | FreeBSD Alex S Ah, that's not quite enough. You need to: 1. rename src/joystick/bsd/SDL_sysjoystick.c to something; 2. regenerate configure. | ||||
* | Allow testing a specific controller | Sam Lantinga | 2020-11-23 | 1 | -0/+4 |
| | |||||
* | Fixed mapping controllers after adding the touchpad button | Sam Lantinga | 2020-11-23 | 1 | -0/+1 |
| | |||||
* | Allow testing effects on PS4 controllers | Sam Lantinga | 2020-11-21 | 1 | -0/+1 |
| | | | | Note, this will switch the controller into advanced report mode which breaks DirectInput on Windows | ||||
* | Added API for sensors on game controllers | Sam Lantinga | 2020-11-17 | 1 | -19/+54 |
| | | | | | | Added support for the PS4 controller gyro and accelerometer on iOS and HIDAPI drivers Also fixed an issue with the accelerometer on iOS having inverted axes | ||||
* | Added SDL_JoystickGetSerial() and SDL_GameControllerGetSerial() | Sam Lantinga | 2020-11-16 | 1 | -1/+7 |
| | |||||
* | Improve LED color calculation, don't set LED unless left thumbstick is moved | Sam Lantinga | 2020-11-16 | 1 | -5/+22 |
| | |||||
* | Added support for the touchpad on PS4 and PS5 controllers | Sam Lantinga | 2020-11-13 | 1 | -1/+17 |
| | |||||
* | Fixed overflow in trigger rumble calculation | Sam Lantinga | 2020-11-12 | 1 | -1/+1 |
| | |||||
* | test: Add a unit test for input device classification heuristics | Simon McVittie | 2020-11-11 | 2 | -0/+1035 |
| | | | | | | | This uses pre-recorded evdev capabilities, so that we can check for regressions without the devices having to be physically present. Signed-off-by: Simon McVittie <smcv@collabora.com> | ||||
* | Added SDL_JoystickRumbleTriggers() and SDL_GameControllerRumbleTriggers() | Sam Lantinga | 2020-11-11 | 1 | -0/+21 |
| | |||||
* | testvulkan: Patched to compile with SDL's internal Vulkan headers. | Ryan C. Gordon | 2020-11-09 | 1 | -2/+1 |
| | |||||
* | Be explicit about mapping the new game controller paddle buttons | Sam Lantinga | 2020-11-07 | 4 | -60/+82 |
| | |||||
* | Don't try to map the accelerometer as a game controller | Sam Lantinga | 2020-11-06 | 2 | -0/+4 |
| | |||||
* | iOS should use the same size window for the controller tests as other platforms | Sam Lantinga | 2020-11-06 | 2 | -10/+0 |
| | | | | Otherwise the position of the button and axis elements won't be correct | ||||
* | Added 4 auxiliary buttons to the game controller API | Sam Lantinga | 2020-11-06 | 2 | -0/+12 |
| | | | | | | Xbox Elite controllers use AUX1-AUX4 to represent the paddle buttons when using the HIDAPI driver PS4 and PS5 controllers use AUX1 to represent the touchpad button Nintendo Switch Pro controllers use AUX1 to represent the capture button | ||||
* | Added SDL_JoystickHasLED | Sam Lantinga | 2020-11-05 | 1 | -0/+12 |
| | | | | Currently, this is only supported by the PS4 HIDAPI driver. |