Commit graph

25 commits

Author SHA1 Message Date
Andreas Schiffler
16a40598f6 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
e2a14cf5dd Updated the copyright year for the test programs 2013-07-25 09:51:21 -07:00
Philipp Wiesemann
62c31ff5c3 Removed not needed SDL_WINDOW_SHOWN from test programs.
See bug #1667.
2013-07-20 21:47:16 +02:00
Sam Lantinga
0cb6385637 File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
Sam Lantinga
282adb772b 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
2e4dc511a0 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
c773de800d Patched testjoystick.c to compile. 2012-12-11 16:53:59 -05:00
Sam Lantinga
a8fab2d5bf 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
41a157a462 Print stick GUID in testjoystick. 2012-12-11 11:59:29 -05:00
Ryan C. Gordon
ba2a2af364 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
f8eaaf3a51 Cleaned out tabstops, other minor style nitpicks. 2012-12-11 11:28:29 -05:00
Ryan C. Gordon
0b1237e790 Allow testjoystick to quit, instead of looping on hotplug events forever. 2012-12-11 11:26:08 -05:00
Sam Lantinga
34b88dfaae Added hotplug joystick support and simplified game controller API, courtesy of Alfred Reynolds 2012-11-26 16:37:54 -08:00
Sam Lantinga
612c9439a4 Updated testjoystick for SDL 2.0 API - patch from simon 2012-10-14 00:24:07 -07:00
Ryan C. Gordon
1114169772 Cleaned up testjoystick.c, improved usage of renderer API, added colors! 2012-08-15 21:00:33 -04:00
Ryan C. Gordon
d0fbc25c13 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
5ef4144446 Removed the SDL 1.2 compatibility API... we'll see how painful this is. 2012-01-22 18:11:41 -05:00
Sam Lantinga
b0660ba5ff SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
Sam Lantinga
c6ac35a2bb Final merge of Google Summer of Code 2008 work...
Bring SDL to iPhone and iPod Touch
by Holmes Futrell, mentored by Sam Lantinga

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403222
2008-10-04 06:46:59 +00:00
Sam Lantinga
e2898c73af indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402544
2007-07-15 21:53:51 +00:00
Ryan C. Gordon
b98b6308d1 Merged r3292:3293 from branches/SDL-1.2: testjoystick verbose info.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402539
2007-07-15 17:25:59 +00:00
Sam Lantinga
0f030a1802 SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401938
2006-07-10 21:04:37 +00:00
Sam Lantinga
f2d67baf34 Moved DirectInput joystick code to 1.3 branch
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401821
2006-05-21 17:26:40 +00:00
Sam Lantinga
fe915b7a0a 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401820
2006-05-21 16:47:41 +00:00
Sam Lantinga
2f110628a7 Initial revision
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401
2001-04-26 16:45:43 +00:00