Commit graph

1227 commits

Author SHA1 Message Date
Ryan C. Gordon
6ff4d48902 Stack hint should look for 0, not -1, and not care about environment variables. 2015-05-26 21:19:23 -04:00
Ryan C. Gordon
12bbb8e161 Added a hint to specify new thread stack size (thanks, Gabriel!).
Fixes Bugzilla #2019.

(we'll do a better fix when we break the API in SDL 2.1.)
2015-05-26 21:13:27 -04:00
Ryan C. Gordon
94dc4ff928 Make dot easier to see in testrelative. 2015-05-26 11:32:06 -04:00
Sam Lantinga
56b58afdbe Updated the copyright year to 2015 2015-05-26 06:27:46 -07:00
Sam Lantinga
f5e7adf421 Fixed bug 2989 - Memory loss in clipboard_testClipboardTextFunctions 2015-05-26 06:16:43 -07:00
Philipp Wiesemann
ae188bcbae Removed redundant NULL check in test program. 2015-05-21 21:27:53 +02:00
Philipp Wiesemann
4575b60c5d Changed clean-up order in test program. 2015-05-21 21:25:32 +02:00
Philipp Wiesemann
a5c372da01 Fixed undefined key access in test program. 2015-05-21 21:25:14 +02:00
Philipp Wiesemann
566df69b69 Added missing loop cancel for Emscripten in test programs. 2015-05-18 21:21:14 +02:00
Philipp Wiesemann
b359854af7 Fixed compiling test program with Emscripten. 2015-05-18 21:17:13 +02:00
Philipp Wiesemann
204e676bfe Fixed handling only one event per frame in test program. 2015-05-18 21:12:16 +02:00
Philipp Wiesemann
ffb4e63c8d Fixed implicit function declaration in test program. 2015-05-06 21:09:33 +02:00
Ryan C. Gordon
0291892654 checkkeys: report SDL_TEXTEDITING events. 2015-05-01 01:19:00 -04:00
Ryan C. Gordon
b78f3a3d40 checkkeys: Readded the KEYUP event test. 2015-05-01 01:12:48 -04:00
Ryan C. Gordon
3ff618a9c7 Cleanups in the joystick code.
Removed some redundant state and other confusions.

Fixes Bugzilla #2738.

--HG--
extra : rebase_source : 35dd561553379e00eb8d169ce12ecc99393b2f84
2015-03-24 13:52:01 -04:00
Philipp Wiesemann
940b699079 Updated test program for Emscripten. 2015-03-23 20:21:45 +01:00
Ryan C. Gordon
90bd9250a4 Immediately minimize the goofy window in testaudiohotplug. 2015-03-19 22:20:12 -04:00
Ryan C. Gordon
e98dd173b7 Initial work on audio device hotplug support.
This fills in the core pieces and fully implements it for Mac OS X.

Most other platforms, at the moment, will report a disconnected device if
it fails to write audio, but don't notice if the system's device list changed
at all.

--HG--
extra : rebase_source : f7e7efbbeecfe58338b0f325340c358c2bdfc402
2015-03-16 02:11:39 -04:00
Philipp Wiesemann
37895d5fa7 Updated name of assert type in test program. 2015-03-15 19:25:10 +01:00
Philipp Wiesemann
f3b8ca2a36 Removed redundant include statements from test programs.
The needed header files are already included with SDL.h. Still including them in
the test programs is confusing because it somehow suggests they would be needed.
2015-02-18 21:31:21 +01:00
Philipp Wiesemann
56146a8c13 Fixed compile warning about unused variable in wave test program. 2015-02-15 11:33:39 +01:00
Philipp Wiesemann
d9c3c62015 Fixed test programs for joystick not exiting on events after first disconnect.
Exit was broken since the main loop extraction needed for Emscripten support
because the former local but now global variables were not reset correctly.
2015-02-12 21:40:53 +01:00
Philipp Wiesemann
bf73cbded1 Fixed bug 2873 - Joystick test won't reload after reattach
lectem

-plug in the joystick
-start testjoystick 0
-unplug
-replug

The joystick is detected but doesn't enter the loop anymore since done==SDL_TRUE
2015-02-10 20:40:03 +01:00
Philipp Wiesemann
b5080e09ab Fixed compiling test with older C. 2015-02-10 20:31:05 +01:00
Philipp Wiesemann
1577f08fad Fixed bug 2866 - testrelative.c: patch to make the orange box wrap around
Eric Wasylishen

Here's a patch to make the 'testrelative' demo program more useful: it just makes the orange rectangle wrap around. Previously, the orange cursor would just disappear off screen if you move the mouse a lot in one direction, so it was hard to tell if relative mouse mode was still working.
2015-02-07 22:40:36 +01:00
Philipp Wiesemann
97ce204e2f Fixed two warnings about initialized but unused local variables in tests. 2015-01-16 23:03:14 +01:00
Philipp Wiesemann
dbc52081d6 Removed missing test program from Makefile. 2014-12-25 22:47:04 +01:00
Philipp Wiesemann
2b4f8be818 Fixed compile errors in example programs. 2014-12-25 21:42:56 +01:00
Ryan C. Gordon
989b509a22 Maybe actually patched to compile this time? 2014-12-24 22:22:35 -05:00
Ryan C. Gordon
e4f209b9e6 Really patched to compile this time? 2014-12-24 13:21:28 -05:00
Ryan C. Gordon
92573049a4 Patched to compile. 2014-12-24 13:16:27 -05:00
Ryan C. Gordon
b5b91f4e11 Maybe patched to compile on Windows for real now? 2014-12-24 02:12:16 -05:00
Ryan C. Gordon
bab5629666 Patched to compile on Windows. 2014-12-24 02:06:38 -05:00
Ryan C. Gordon
6b529cf6dd Patched to compile on non-Emscripten targets. 2014-12-24 02:01:12 -05:00
Ryan C. Gordon
de88474dda Initial merge of Emscripten port!
With this commit, you can compile SDL2 with Emscripten
( http://emscripten.org/ ), and make your SDL-based C/C++ program
into a web app.

This port was due to the efforts of several people, including: Charlie Birks,
Sathyanarayanan Gunasekaran, Jukka Jylänki, Alon Zakai, Edward Rudd,
Bruce Mitchener, and Martin Gerhardy. (Thanks, everyone!)

--HG--
extra : rebase_source : 97af74c8a5121e926ebe89f123536b5dd6681695
2014-12-18 00:19:52 -05:00
Philipp Wiesemann
af960c21b5 Removed unused includes and functions from test program. 2014-12-12 21:51:30 +01:00
Philipp Wiesemann
441018f860 Replaced sqrt() with SDL_sqrt() in test program. 2014-12-12 21:02:46 +01:00
Philipp Wiesemann
428c615dec Removed global variable from test program.
On Android starting the application after a previous quit did not always work.
Android keeps VM processes for a faster restart and therefore the loaded *.so.
2014-12-12 21:00:25 +01:00
Philipp Wiesemann
ba95566488 Fixed setting text to clipboard in controllermap program. 2014-12-10 21:13:43 +01:00
Philipp Wiesemann
fdde05856b Added comments in example program. 2014-12-10 21:10:55 +01:00
Edward Rudd
f39c6e8a6f switch to use SDL_PRI* macros for long long formatting everywhere. 2014-12-03 12:23:17 -05:00
Andreas Schiffler
abb05b9c97 Fix assert format strings/parameters in testautomation modules; improve output of SDL_CompareSurfaces to aid debugging; update platform_testSetErrorInvalidInput for SDL changes 2014-11-30 20:55:27 -08:00
Edward Rudd
fa53dcaf63 add "i" shortcut to testgesture tool to log # of fingers down on the touch devices. 2014-11-23 15:39:28 -05:00
Philipp Wiesemann
92066ca133 Added missing brackets in test source assert messages. 2014-11-07 10:02:45 +01:00
Philipp Wiesemann
0ae0b60149 Fixed two typos in test source. 2014-11-07 10:01:20 +01:00
Ryan C. Gordon
5ac5bdcea5 Haptic: Deal with negative periodic magnitudes (thanks, Elias!).
A negative periodic magnitude doesn't exist in Windows' and MacOS' FF APIs

The periodic magnitude parameter of the SDL Haptic API is based on the Linux
 FF API, so it means they are not directly compatible:
    'dwMagnitude' is a 'DWORD', which is unsigned.

Fixes Bugzilla #2701.

--HG--
extra : amend_source : eb0b85870149936fd451ddb0662841112ff93d07
2014-09-17 14:49:36 -04:00
Gabriel Jacobo
8a4dc0573c [Android] Fixes #2480, music does not pause when process backgrounded
This modifies SDL_PauseAudio behavior to pause all audio devices instead of
just the default one (required on Android, at least for testmultiaudio on my
Nexus 4 which reported 2 audio devices).
It also changes SDL_PauseAudioDevice to retain the device lock from pause until
resume in order to save battery in mobile devices.
2014-09-17 11:41:12 -03:00
Philipp Wiesemann
452ba51ebd Fixed typos in test program. 2014-08-20 22:51:56 +02:00
Philipp Wiesemann
3d122d4d7c Fixed not needed standard includes in test program. 2014-08-20 22:49:59 +02:00
Philipp Wiesemann
80ff7925b5 Fixed warnings about unused value in test program. 2014-08-20 22:47:07 +02:00