Sam Lantinga
1b24bfad38
Updated copyright for 2017
2017-01-01 18:33:28 -08:00
Philipp Wiesemann
c8d8045c0d
Fixed compiling of testgamecontroller program with C++.
2016-12-28 20:11:29 +01:00
Sam Lantinga
c6e0424049
Split controller axes into positive and negative sides so each can be bound independently.
...
Using this a D-Pad can be mapped to a thumbstick and vice versa.
Also added support for inverted axes, improving trigger binding support
2016-12-27 01:39:07 -08:00
Sam Lantinga
9fc407dda0
Only print out the controller mappings if we're not going to test a controller
2016-12-09 04:17:10 -08:00
Sam Lantinga
a31f3d2c25
Added an API to iterate over game controller mappings
2016-11-29 06:36:57 -08:00
Sam Lantinga
3055d5af65
Added USB VID/PID information to the SDL test programs
2016-11-10 18:53:50 -08:00
Sam Lantinga
1e2589c229
Fixed black screen on Steam Link
2016-10-13 04:01:25 -07:00
Philipp Wiesemann
0f1075b48e
Fixed compiling of three test programs with C++.
2016-09-21 23:06:38 +02:00
Philipp Wiesemann
62a5ddb862
Fixed memory leak in game controller test program.
2016-05-05 22:05:21 +02:00
Sam Lantinga
7ee8dda270
Updated copyright to 2016
2016-01-02 10:10:34 -08:00
Philipp Wiesemann
da4d0e4a52
Replaced tabs with spaces in test programs.
2015-11-25 21:39:28 +01:00
Ryan C. Gordon
03cb578e6e
Added SDL_JoystickFromInstanceID() and SDL_GameControllerFromInstanceID().
...
--HG--
extra : amend_source : 110a5505509ddb9ecafed75abd89602986a99696
2015-11-14 12:35:45 -05:00
Alex Szpakowski
0023cbb086
Added initial support for MFi game controllers on iOS.
2015-09-20 23:08:36 -03:00
Sam Lantinga
56b58afdbe
Updated the copyright year to 2015
2015-05-26 06:27:46 -07:00
Philipp Wiesemann
ae188bcbae
Removed redundant NULL check in test program.
2015-05-21 21:27:53 +02:00
Philipp Wiesemann
566df69b69
Added missing loop cancel for Emscripten in test programs.
2015-05-18 21:21:14 +02: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
2b4f8be818
Fixed compile errors in example programs.
2014-12-25 21:42:56 +01: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
2dc2c35b31
Fixed warnings about unused functions in test program.
2014-08-20 22:44:15 +02:00
Sam Lantinga
07f74cbbcc
Fixed assertion loading button.bmp in testgamecontroller
2014-03-29 12:27:27 -07:00
Ryan C. Gordon
f4f293ae2a
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
Ryan C. Gordon
49fd59d20d
Replace testgamecontroller visualization mode with something more useful.
2014-02-10 01:41:58 -05:00
Sam Lantinga
d7940a513e
Fixed bug 2374 - Update copyright for 2014...
...
Is it that time already??
2014-02-02 00:53:27 -08:00
Sam Lantinga
b2bb6f1da1
Changed testgamecontroller to wait for controllers to be reattached, the way testjoystick does.
2013-12-23 15:55:08 -08:00
Gabriel Jacobo
9054b03edb
Adds controllermap utility to test suite.
2013-12-02 19:35:04 -03:00
Ryan C. Gordon
bbbade42fa
Fixed testgamecontroller output to make sense.
...
--HG--
extra : rebase_source : 88c573edaf1da2153ada5b4f2c6893e91add2310
2013-08-28 00:07:02 -04:00
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
Jørgen P. Tjernø
50a23e3026
Improve testgamecontroller output & robustness.
2013-04-03 16:48:23 -07:00
Ryan C. Gordon
a5862a96a3
Changed the game controller enum types to match SDL naming conventions.
2013-02-25 00:56:21 -05:00
Ryan C. Gordon
db73a392c2
Minor cleanup.
2013-02-25 00:47:47 -05:00
Ryan C. Gordon
e4ef7cba60
Made testgamecontroller minimally more useful.
2013-02-24 22:57:25 -05: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
Sam Lantinga
34b88dfaae
Added hotplug joystick support and simplified game controller API, courtesy of Alfred Reynolds
2012-11-26 16:37:54 -08:00