Sam Lantinga
54dbdfc8eb
Ignore axis jitter when mapping controllers
2019-12-05 13:18:56 -08:00
Sam Lantinga
dee346af66
Fixed mapping controllers that have axes that start at -32768 and then snap to 0 at the first input report
2019-11-28 11:44:15 -08:00
Sam Lantinga
7ee14a9bc1
Turned on controllermap debug output by default
2019-11-21 10:09:26 -08:00
Ozkan Sezer
43d3bedb26
test: replace some exit()s with returns.
2019-09-10 10:03:20 +03:00
Sam Lantinga
af32a2f4cd
Updated copyright for 2019
2019-01-04 22:01:14 -08:00
Sam Lantinga
346af016a5
Updated copyright for 2018
2018-01-03 10:03:25 -08:00
Philipp Wiesemann
17ff797d83
Fixed warning about implicit conversion in controllermap program.
2017-03-04 23:05:47 +01:00
Sam Lantinga
b5f23df6a8
Fixed mapping the PG-9021 which, on Linux, emits a button partway through the trigger press along with axis motion all along the pull
2017-01-20 16:40:11 -08:00
Sam Lantinga
724ff3b29e
Added SDL_JoystickGetAxisInitialState() to get a joystick axis' initial value.
...
This is useful for controller mapping programs to determine an axis' zero state
2017-01-04 10:28:07 -08:00
Sam Lantinga
03a927b4e3
Some controllers have trouble getting out to 20000
2017-01-04 05:09:02 -08:00
Sam Lantinga
40924be014
Fixed binding the D-pad on some Super NES style controllers
...
Fixed a case where partial trigger pull could be bound to another button
There is a fundamental problem not resolved by this commit:
Some controllers have axes (triggers, pedals, etc.) that don't start at zero, but we're guaranteed that if we get a value that it's correct. For these controllers, the current code works, where we take the first value we get and use that as the zero point and generate axis motion starting from that point on.
Other controllers have digital axes (D-pad) that assume a zero starting point, and the first value we get is the min or max axis value when the D-pad is moved. For these controllers, the current code thinks that the zero point is the axis value after the D-pad motion and this doesn't work.
My hypothesis is that the first class of devices is more common and that we should solve for that, and add an exception to SDL_JoystickAxesCenteredAtZero() as needed for the second class of devices.
2017-01-03 23:39:28 -08:00
Sam Lantinga
1b24bfad38
Updated copyright for 2017
2017-01-01 18:33:28 -08:00
Philipp Wiesemann
f848ed47c9
Fixed warning about unused variable in controllermap program.
2016-12-28 20:11:12 +01:00
Sam Lantinga
899ab7a827
Make sure we go all the way back (within the XBox controller dead zone) to prevent accidentally binding axes inverted
2016-12-27 09:51:58 -08: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
Philipp Wiesemann
1a614928de
Fixed warning about unused variable in controllermap program.
2016-12-16 22:58:16 +01:00
Sam Lantinga
9b86fb09cb
Fixed handling joysticks that send multiple events for a single control, e.g. both a button and axis event for a trigger.
...
Tested with the 8Bitdo NES30 Pro on Linux
2016-12-15 14:27:22 -08:00
Sam Lantinga
3055d5af65
Added USB VID/PID information to the SDL test programs
2016-11-10 18:53:50 -08:00
Philipp Wiesemann
66335e4dc0
Removed unused constants in controllermap program.
2016-10-15 20:01:30 +02:00
Sam Lantinga
ed5b8e1246
Fixed black screen on Steam Link
2016-10-13 02:09:37 -07:00
Philipp Wiesemann
0f1075b48e
Fixed compiling of three test programs with C++.
2016-09-21 23:06:38 +02:00
Sam Lantinga
7ee8dda270
Updated copyright to 2016
2016-01-02 10:10:34 -08:00
Sam Lantinga
7d9b80ccb3
Fixed mapping third party XBox controllers that have the trigger axis all the way in until they are pulled and get updated values.
2015-12-18 18:49:23 -08:00
Philipp Wiesemann
da4d0e4a52
Replaced tabs with spaces in test programs.
2015-11-25 21:39:28 +01:00
Sam Lantinga
56b58afdbe
Updated the copyright year to 2015
2015-05-26 06:27:46 -07:00
Philipp Wiesemann
ba95566488
Fixed setting text to clipboard in controllermap program.
2014-12-10 21:13:43 +01:00
Philipp Wiesemann
4e8cb4d7be
Fixed use of uninitialized variable warning in test program.
2014-05-29 22:44:08 +02:00
Gabriel Jacobo
04d8bb1069
A few more ANDROID for __ANDROID__ replacements
2014-05-10 15:57:09 -03:00
Gabriel Jacobo
e79e6a8637
Fixes #2456 , controllermap's undo does not work correctly (by Bogdan Marinov)
2014-03-24 11:42:09 -03:00
Ryan C. Gordon
14e7c1e341
controllermap: Don't treat SDL_HAT_CENTERED as a valid input.
...
--HG--
extra : rebase_source : d3d69e6f0f44f04fb8bf910b5888a5040be579d3
2014-03-18 12:33:57 -04: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
Gabriel Jacobo
fddd6a295f
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
a2021a76d6
Removed unused function.
2014-02-10 01:43:01 -05:00
Ryan C. Gordon
755c18bf87
No need to use a render target here.
2014-02-09 15:20:41 -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
Philipp Wiesemann
0319037b72
Fixed access of command line arguments on Android in two test programs.
2013-12-25 00:11:28 +01:00
Philipp Wiesemann
eee2bcca85
Fixed unused local variable warning in test program source.
2013-12-25 00:04:31 +01:00
Gabriel Jacobo
b3fa9a3e55
[Android] Handle native thread finishing when not commanded from the Java side
2013-12-05 10:51:38 -03:00
Gabriel Jacobo
137f4aedc1
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
9054b03edb
Adds controllermap utility to test suite.
2013-12-02 19:35:04 -03:00