Sam Lantinga
a9072159b2
Updated copyright for 2018
2018-01-03 10:03:25 -08:00
Philipp Wiesemann
3f675a01a7
Fixed warning about implicit conversion in controllermap program.
2017-03-04 23:05:47 +01:00
Sam Lantinga
d1508cc1ad
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
1e81ac1559
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
c35b0eefbe
Some controllers have trouble getting out to 20000
2017-01-04 05:09:02 -08:00
Sam Lantinga
c9ed79623c
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
d77ab77a7a
Updated copyright for 2017
2017-01-01 18:33:28 -08:00
Philipp Wiesemann
3d06b2ce33
Fixed warning about unused variable in controllermap program.
2016-12-28 20:11:12 +01:00
Sam Lantinga
e1d3e01601
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
bdd7e6b176
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
7d96beee5e
Fixed warning about unused variable in controllermap program.
2016-12-16 22:58:16 +01:00
Sam Lantinga
103da69c77
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
2927b15bca
Added USB VID/PID information to the SDL test programs
2016-11-10 18:53:50 -08:00
Philipp Wiesemann
8f8e7db610
Removed unused constants in controllermap program.
2016-10-15 20:01:30 +02:00
Sam Lantinga
13c3adb1fd
Fixed black screen on Steam Link
2016-10-13 02:09:37 -07:00
Philipp Wiesemann
9335a5b22f
Fixed compiling of three test programs with C++.
2016-09-21 23:06:38 +02:00
Sam Lantinga
255c182471
Updated copyright to 2016
2016-01-02 10:10:34 -08:00
Sam Lantinga
17a35ec885
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
9677d33467
Replaced tabs with spaces in test programs.
2015-11-25 21:39:28 +01:00
Sam Lantinga
78f2198e6c
Updated the copyright year to 2015
2015-05-26 06:27:46 -07:00
Philipp Wiesemann
e30a942695
Fixed setting text to clipboard in controllermap program.
2014-12-10 21:13:43 +01:00
Philipp Wiesemann
fa039cce2f
Fixed use of uninitialized variable warning in test program.
2014-05-29 22:44:08 +02:00
Gabriel Jacobo
0ed35a7e64
A few more ANDROID for __ANDROID__ replacements
2014-05-10 15:57:09 -03:00
Gabriel Jacobo
e51bee5598
Fixes #2456 , controllermap's undo does not work correctly (by Bogdan Marinov)
2014-03-24 11:42:09 -03:00
Ryan C. Gordon
7005ad71ce
controllermap: Don't treat SDL_HAT_CENTERED as a valid input.
2014-03-18 12:33:57 -04:00
Ryan C. Gordon
e450b2f9d9
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
acd58f19d8
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
802397a171
Removed unused function.
2014-02-10 01:43:01 -05:00
Ryan C. Gordon
87dd51b115
No need to use a render target here.
2014-02-09 15:20:41 -05: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
00d7d30fd5
Fixed unused local variable warning in test program source.
2013-12-25 00:04:31 +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
Gabriel Jacobo
7deb0ea7c9
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
a0af4271a0
Adds controllermap utility to test suite.
2013-12-02 19:35:04 -03:00