Fixed mapping third party XBox controllers that have the trigger axis all the way in until they are pulled and get updated values.
--- a/test/controllermap.c Fri Dec 18 00:49:27 2015 -0400
+++ b/test/controllermap.c Fri Dec 18 18:49:23 2015 -0800
@@ -232,7 +232,7 @@
if (SDL_PollEvent(&event)) {
switch (event.type) {
case SDL_JOYAXISMOTION:
- if (event.jaxis.value > 20000 || event.jaxis.value < -20000) {
+ if ((event.jaxis.value > 20000 || event.jaxis.value < -20000) && event.jaxis.value != -32768) {
for (_s = 0; _s < s; _s++) {
if (steps[_s].axis == event.jaxis.axis) {
break;