Sam Lantinga
a7f26f9e6c
Added HIDAPI joystick drivers for more consistent support for Xbox, PS4 and Nintendo Switch Pro controller support across platforms.
...
Added SDL_GameControllerRumble() and SDL_JoystickRumble() for simple force feedback outside of the SDL haptics API
2018-08-09 16:00:17 -07:00
Sam Lantinga
a9072159b2
Updated copyright for 2018
2018-01-03 10:03:25 -08:00
Sam Lantinga
88be409a04
Added support for the HOTAS Warthog throttle
2017-01-31 12:23:29 -08:00
Sam Lantinga
eb445857f5
Added the HOTAS Warthog as a flight stick
2017-01-31 10:20:09 -08:00
Sam Lantinga
d77ab77a7a
Updated copyright for 2017
2017-01-01 18:33:28 -08:00
Philipp Wiesemann
af39fc10d3
Fixed hotplug with more than one device in testjoystick program.
2016-12-16 22:58:32 +01:00
Sam Lantinga
2927b15bca
Added USB VID/PID information to the SDL test programs
2016-11-10 18:53:50 -08:00
Sam Lantinga
255c182471
Updated copyright to 2016
2016-01-02 10:10:34 -08:00
Philipp Wiesemann
9677d33467
Replaced tabs with spaces in test programs.
2015-11-25 21:39:28 +01:00
Ryan C. Gordon
87c985cd18
Added SDL_JoystickFromInstanceID() and SDL_GameControllerFromInstanceID().
2015-11-14 12:35:45 -05:00
Alex Szpakowski
4a556c4c01
Added initial support for MFi game controllers on iOS.
2015-09-20 23:08:36 -03:00
Sam Lantinga
78f2198e6c
Updated the copyright year to 2015
2015-05-26 06:27:46 -07:00
Philipp Wiesemann
a96660cbde
Added missing loop cancel for Emscripten in test programs.
2015-05-18 21:21:14 +02:00
Ryan C. Gordon
44708540f3
Cleanups in the joystick code.
...
Removed some redundant state and other confusions.
Fixes Bugzilla #2738 .
2015-03-24 13:52:01 -04:00
Philipp Wiesemann
4c8d5e20a7
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
0a22818c0d
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
Ryan C. Gordon
a9626cb76e
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!)
2014-12-18 00:19:52 -05:00
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