Philipp Wiesemann
9854504fc3
Added missing stdio include in test program.
2014-05-29 22:48:10 +02:00
Philipp Wiesemann
fa039cce2f
Fixed use of uninitialized variable warning in test program.
2014-05-29 22:44:08 +02:00
Philipp Wiesemann
cbfd769a05
Changed C++ style comments.
2014-05-18 21:11:30 +02:00
Philipp Wiesemann
275dddab6b
Changed C++ style comments to fix pedantic warnings.
2014-05-17 22:02:25 +02:00
Gabriel Jacobo
0ed35a7e64
A few more ANDROID for __ANDROID__ replacements
2014-05-10 15:57:09 -03:00
Dimitris Zenios
8adc9938a4
__ANDROID__ is the correct macro to check for an android system.ANDROID is only defined in NDK build system (.mk) and not in the standalone NDK.
2014-05-05 22:21:26 +03:00
Sam Lantinga
dca69c99ea
Fixed the inertia effect in the test program
2014-04-26 12:29:40 -07:00
Philipp Wiesemann
ab11da111a
Removed global variable from test program.
2014-04-19 15:28:13 +02:00
Sam Lantinga
cbd1d2988e
Fixed bug 2475 - Incorrect SDL_Log() format specifiers in test/testgesture.c
...
rettichschnidi
The floats should not be interpreted as integers. Patch against the current head attached.
2014-04-17 22:40:57 -07:00
Philipp Wiesemann
8cc0a1f080
Removed empty statements.
2014-04-05 23:50:09 +02:00
Philipp Wiesemann
776bf83675
Removed unused variable from test program.
2014-04-04 23:56:15 +02:00
Sam Lantinga
29e7293ecc
Fixed assertion loading button.bmp in testgamecontroller
2014-03-29 12:27:27 -07:00
Gabriel Jacobo
e51bee5598
Fixes #2456 , controllermap's undo does not work correctly (by Bogdan Marinov)
2014-03-24 11:42:09 -03:00
Sam Lantinga
377cd2e535
Fixed warning on Mac OS X
2014-03-23 23:08:26 -07:00
Andreas Schiffler
76293d2333
Fix visualstudio build break introduced by changeset 8645
2014-03-19 21:48:32 -07:00
Andreas Schiffler
353b516a34
Add input validation to SDL_getenv/SDL_setenv; update Stdlib testsuite; add Hints testsuite
2014-03-19 21:39:55 -07:00
Ryan C. Gordon
7005ad71ce
controllermap: Don't treat SDL_HAT_CENTERED as a valid input.
2014-03-18 12:33:57 -04:00
Andreas Schiffler
147451d2ca
Fix bug/add test coverage for SDLTest_GenerateRunSeed helper; improve test harness adding output of repro steps for failures; improve negative test for SDL_GetError/SDL_SetError
2014-03-11 07:17:56 -07:00
Sam Lantinga
0ae88759fb
Integrated David Ludwig's support for Windows RT
2014-03-09 11:36:47 -07:00
Sam Lantinga
32547d0c59
Fixed line endings on WinRT source code
2014-03-09 11:06:11 -07:00
Gabriel Jacobo
16abbefb81
Improve testgles2 exit behavior (useful on Android)
2014-02-20 16:12:11 -03:00
Ryan C. Gordon
e450b2f9d9
Make controllermap, etc, work on platforms with hardcoded window sizes.
...
This makes sure everything renders correctly, even if, say, an Android device
gives you a certain "window" size no matter what you ask for.
2014-02-10 11:29:48 -05:00
Gabriel Jacobo
acd58f19d8
Backed out 51935d107921
...
The render target usage in controllermap is required if you are forced to use
the app at a different resolution than the one the art has been made for, for
example on Android, where you don't control the resolution.
(The coordinates for each button are hardcoded to the art size, and appear out
of place otherwise)
2014-02-10 09:26:22 -03:00
Ryan C. Gordon
802397a171
Removed unused function.
2014-02-10 01:43:01 -05:00
Ryan C. Gordon
c18be74a8e
Replace testgamecontroller visualization mode with something more useful.
2014-02-10 01:41:58 -05:00
Ryan C. Gordon
87dd51b115
No need to use a render target here.
2014-02-09 15:20:41 -05:00
Edward Rudd
ca1ebb24b6
slight adjustment to the hot plug test to allow it to be run with hap tics disabled
2014-02-07 09:35:33 -05:00
Ryan C. Gordon
85219a6a5d
Fixed return values on testhotplug mainline.
2014-02-06 07:38:41 -05:00
Ryan C. Gordon
fd7ded0e94
Fixed copyright date.
2014-02-06 07:38:04 -05:00
Edward Rudd
943e4dc475
add testdropfile to OS X Project
2014-02-04 18:21:39 -05:00
Edward Rudd
2d6feda57f
allow safely quitting the hotplug test by pressing button 0 on the joystick
2014-02-04 15:40:51 -05:00
Edward Rudd
80dbd8ae39
testhotplug: Actually log the SDL_Error that occured on failures
2014-02-03 23:08:53 -05:00
Edward Rudd
48e9978f42
add logging for the case when haptic is not detected on the joystick as well.
2014-02-03 23:01:19 -05:00
Edward Rudd
92a8ee88f0
add simple test showing off hotplugging of joysticks w/ haptic.
2014-02-03 22:52:18 -05:00
Sam Lantinga
dba255c1e5
Fixed bug 2374 - Update copyright for 2014...
...
Is it that time already??
2014-02-02 00:53:27 -08:00
Sam Lantinga
921f2abe11
Fixed bug 2376 - no SDL_HasAVX
...
Haneef Mubarak
AVX is the successor to SSE* and is fairly widely available. As such, it really ought to be detectable.
This functionality ought to be trivial to implement, and not having it means being forced to write an ugly workaround to check for AVX (so that normal SSE can be used if AVX is not available).
Here is an example on detecting AVX from SO (it actually shows ways to cehck for all of teh fancy instructions):
http://stackoverflow.com/questions/6121792/how-to-check-if-a-cpu-supports-the-sse3-instruction-set
2014-02-02 00:33:31 -08:00
Edward Rudd
049d8ae9a5
some fixes to the testshape.c code so it more correctly works.
2014-01-08 14:18:11 -05:00
David Ludwig
c96c4f3dc4
WinRT: merged with latest SDL 2.x/HG code
...
SDL 2.x recently accepted patches to enable OpenGL ES 2 support via Google's ANGLE library. The thought is to try to eventually merge SDL/WinRT's OpenGL code with SDL-official's.
2013-11-28 22:09:21 -05:00
Ryan C. Gordon
aea9ef3f9f
Regenerate the configure scripts.
2013-11-25 00:11:52 -05:00
Philipp Wiesemann
2cef47a75e
Fixed access of command line arguments on Android in two test programs.
2013-12-25 00:11:28 +01:00
Philipp Wiesemann
00d7d30fd5
Fixed unused local variable warning in test program source.
2013-12-25 00:04:31 +01:00
Philipp Wiesemann
7107a779df
Fixed missing return warning in test program source.
2013-12-24 19:55:41 +01:00
Sam Lantinga
ca345234a8
Changed testgamecontroller to wait for controllers to be reattached, the way testjoystick does.
2013-12-23 15:55:08 -08:00
Gabriel Jacobo
74cba7bdbe
Wayland support
...
Based on the original port to Wayland by: Joel Teichroeb, Benjamin Franzke, Scott Moreau, et al.
Additional changes in this commit, done by me:
* Wayland uses the common EGL framework
* EGL can now create a desktop OpenGL context
* testgl2 loads GL functions dynamically, no need to link to libGL anymore
* Assorted fixes to the Wayland backend
Tested on the Weston Compositor (v1.0.5) that ships with Ubuntu 13.10,
running Weston under X. Tests ran: testrendercopyex (all backends), testgl2, testgles2,testintersections
2013-12-14 20:18:43 -03:00
Sam Lantinga
f92e7a48c8
Fixed bug 2294 - testdrawchessboard.c Sets the render color alpha to 0x0.
...
Brandon Schaefer
This means everything will render black if the software rendering backend selects a pixel format that supports alpha. So it seems best to at lease assume alpha is supported.
2013-12-11 21:13:45 -08:00
Gabriel Jacobo
d5a570b8bf
[Android] Handle native thread finishing when not commanded from the Java side
2013-12-05 10:51:38 -03:00
Gabriel Jacobo
7deb0ea7c9
Adds SDL_GameControllerAddMappingsFromRW, updates controllermap
...
SDL_GameControllerAddMappingsFromFile is now a convenience macro.
controllermap can now skip bindings by pressing space or clicking/touching the
screen.
2013-12-03 12:01:28 -03:00
Gabriel Jacobo
a0af4271a0
Adds controllermap utility to test suite.
2013-12-02 19:35:04 -03:00
Philipp Wiesemann
fa6e49b05a
Removed second return statement.
2013-11-23 18:37:36 +01:00
Gabriel Jacobo
3fcc35f5bb
OpenGL ES support for Windows
2013-11-22 13:24:53 -03:00