Commit Graph

30 Commits

Author SHA1 Message Date
Gabriel Jacobo
0ed35a7e64 A few more ANDROID for __ANDROID__ replacements 2014-05-10 15:57:09 -03:00
Sam Lantinga
dba255c1e5 Fixed bug 2374 - Update copyright for 2014...
Is it that time already??
2014-02-02 00:53:27 -08: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
7107a779df Fixed missing return warning in test program source. 2013-12-24 19:55:41 +01:00
Gabriel Jacobo
d5a570b8bf [Android] Handle native thread finishing when not commanded from the Java side 2013-12-05 10:51:38 -03:00
Andreas Schiffler
7582a71d05 Fix bug 2034: replace printf by SDL_Log in tests; update loopwave VS solution: copy missing dependency 2013-08-14 23:30:10 -07:00
Sam Lantinga
7eff345ecb Updated the copyright year for the test programs 2013-07-25 09:51:21 -07:00
Philipp Wiesemann
aa1fee4fdb Removed not needed SDL_WINDOW_SHOWN from test programs.
See bug #1667.
2013-07-20 21:47:16 +02:00
Sam Lantinga
0d9b661db8 File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
Sam Lantinga
e25812727e Fixed bug 1759 - Updates to testjoystick.c
ny00

A minor patch is attached, with the following few changes to testjoystick.c:
- Unused constant definitions have been removed.
- Output for all analog axes is drawn, even when there is an odd number of axes. (I have a controller with 5 analog axes.)
- Buttons are now drawn on two rows, so there's room for more. In fact, it has been used for testing a proposed joystick patch for Android, where large button ID numbers have been involved (20 and up). For more details see http://bugzilla.libsdl.org/show_bug.cgi?id=1700.
- A few adaptations have been done for the Android platform, assuming joystick support is ever applied to it. One of them is that the very first joystick (in the enumeration of all joysticks) is opened for testing, if there is any.
- It is now possible to quit from the calibration by pressing on a mouse button, tapping on a touchscreen or pressing/tapping on the "Back" button of an Android device. Technically, a press on a key identified by key code SDLK_AC_BACK results in that.
2013-03-19 22:25:02 -07:00
Andreas Schiffler
2690692f25 Fix compiler warning; minor harness driver cleanup; fix test build for SDL versions compiled with --disable-joystick or --disable-haptic 2012-12-22 20:43:51 -08:00
Ryan C. Gordon
a0d481b870 Patched testjoystick.c to compile. 2012-12-11 16:53:59 -05:00
Sam Lantinga
e703bedd83 You can get window events after shutting down the window, so don't abort the program if that happens. 2012-12-11 10:50:26 -08:00
Ryan C. Gordon
9148ea5edb Print stick GUID in testjoystick. 2012-12-11 11:59:29 -05:00
Ryan C. Gordon
7e8d1988f8 Don't hang testjoystick if we failed to open the device in the first place. 2012-12-11 11:41:06 -05:00
Ryan C. Gordon
00b96f81b8 Cleaned out tabstops, other minor style nitpicks. 2012-12-11 11:28:29 -05:00
Ryan C. Gordon
4052a410c3 Allow testjoystick to quit, instead of looping on hotplug events forever. 2012-12-11 11:26:08 -05:00
Sam Lantinga
23950f0183 Added hotplug joystick support and simplified game controller API, courtesy of Alfred Reynolds 2012-11-26 16:37:54 -08:00
Sam Lantinga
1f9c1c3528 Updated testjoystick for SDL 2.0 API - patch from simon 2012-10-14 00:24:07 -07:00
Ryan C. Gordon
9da896d0d4 Cleaned up testjoystick.c, improved usage of renderer API, added colors! 2012-08-15 21:00:33 -04:00
Ryan C. Gordon
afd1cf9469 Updated testjoystick.c for SDL2 API and draw more information.
Fixes Bugzilla #1570.

Thanks to Ondra Hosek for the patch!
2012-08-15 20:53:24 -04:00
Sam Lantinga
9c4c023744 Removed the SDL 1.2 compatibility API... we'll see how painful this is. 2012-01-22 18:11:41 -05:00
Sam Lantinga
6196aa221e SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
Sam Lantinga
92c3984118 Final merge of Google Summer of Code 2008 work...
Bring SDL to iPhone and iPod Touch
by Holmes Futrell, mentored by Sam Lantinga
2008-10-04 06:46:59 +00:00
Sam Lantinga
54b8c863e2 indent 2007-07-15 21:53:51 +00:00
Ryan C. Gordon
039e57b150 Merged r3292:3293 from branches/SDL-1.2: testjoystick verbose info. 2007-07-15 17:25:59 +00:00
Sam Lantinga
6bc598ea61 SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head. 2006-07-10 21:04:37 +00:00
Sam Lantinga
61cc023f8a Moved DirectInput joystick code to 1.3 branch 2006-05-21 17:26:40 +00:00
Sam Lantinga
c0441f5cf0 Closed bug #74
Added DirectInput joystick code, contributed by Glenn Maynard.

This fixes a problem with the Windows Multimedia joystick driver
not showing all 6 axes on a GameCube controller converter, which
was donated by Jacob Kolding.
2006-05-21 16:47:41 +00:00
Sam Lantinga
5d2015c741 Initial revision 2001-04-26 16:45:43 +00:00