SDL/src
Sam Lantinga 05d8c2dcd2 Fix SDL xinput code to work at all when xinput has devices at high indexes but no device connected at lower index, for instance 0->disconnected, 1->wireles, 2->wired. Previously the SDL code assumed the indexes were always used up in order which is not true at all and lead to a bunch of failure cases where controllers would go unrecognized.
This entire function is kind of a mess and more complicated than needed, but I don't want to refactor it too heavily tonight.  May look at improving how the indexes are assigned more significanly later.  The way it handles not finding a valid "gamepad" type device is also super broken, it leaves in place the xinput bindings but opens the controller with dinput and ends up with completely wrong mappings, not solving that now, but fixing the bug where we'd very frequently not find a controller due to gaps in assigned player numbers should mostly avoid it.
2013-08-21 10:31:44 -07:00
..
atomic Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
audio OCD fixes: Adds a space after /* (glory to regular expressions!) 2013-08-21 09:47:10 -03:00
core OCD fixes: Adds a space after /* (glory to regular expressions!) 2013-08-21 09:47:10 -03:00
cpuinfo Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
events OCD fixes: Adds a space after /* (glory to regular expressions!) 2013-08-21 09:47:10 -03:00
file Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
filesystem Actually, this should be a memcpy(). 2013-08-20 23:20:32 -04:00
haptic OCD fixes: Adds a space after /* (glory to regular expressions!) 2013-08-21 09:47:10 -03:00
joystick Fix SDL xinput code to work at all when xinput has devices at high indexes but no device connected at lower index, for instance 0->disconnected, 1->wireles, 2->wired. Previously the SDL code assumed the indexes were always used up in order which is not true at all and lead to a bunch of failure cases where controllers would go unrecognized. 2013-08-21 10:31:44 -07:00
libm OCD fixes: Adds a space after /* (glory to regular expressions!) 2013-08-21 09:47:10 -03:00
loadso Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
main OCD fixes: Adds a space after /* (glory to regular expressions!) 2013-08-21 09:47:10 -03:00
power Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
render Fixes for -Wdeclaration-after-statement 2013-08-21 10:12:16 -03:00
stdlib Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
test OCD fixes: Adds a space after /* (glory to regular expressions!) 2013-08-21 09:47:10 -03:00
thread Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
timer Fixes for -Wdeclaration-after-statement 2013-08-21 10:12:16 -03:00
video Fixed crash if the IC isn't set up for some reason (bad X11 locale?) 2013-08-21 10:07:48 -07:00
SDL.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
SDL_assert.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
SDL_assert_c.h Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
SDL_error.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
SDL_error_c.h Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
SDL_hints.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00
SDL_log.c Fixes #2022, do not resume on Android when surfaceChanged 2013-08-12 11:13:50 -03:00