SDL/src
Sam Lantinga a9be917e0f 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 Added PowerPC and ARM versions of the memory barrier functions. 2013-07-10 20:17:20 -07: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 Happy New Year! 2013-02-15 08:47:44 -08:00
events OCD fixes: Adds a space after /* (glory to regular expressions!) 2013-08-21 09:47:10 -03:00
file Fixed implicit function declaration for SDL_AndroidGetInternalStoragePath(). 2013-06-02 14:13:21 +02: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 Explicitly use the RTLD_LOCAL flag since that's the behavior we want. 2013-08-07 17:26:28 -07:00
main OCD fixes: Adds a space after /* (glory to regular expressions!) 2013-08-21 09:47:10 -03:00
power File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
render Fixes for -Wdeclaration-after-statement 2013-08-21 10:12:16 -03:00
stdlib Fixed SDL printf output for 0x%.8x 2013-07-23 12:44:14 -07:00
test OCD fixes: Adds a space after /* (glory to regular expressions!) 2013-08-21 09:47:10 -03:00
thread Fixed crash if SDL_GetThreadName() is passed a NULL thread. 2013-08-08 12:21:26 -07: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_assert_c.h Removed SDL_AssertionsInit(). It's a no-op, let's keep it that way. :) 2013-08-07 11:00:44 -07:00
SDL_assert.c Removed SDL_AssertionsInit(). It's a no-op, let's keep it that way. :) 2013-08-07 11:00:44 -07:00
SDL_error_c.h File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_error.c File style cleanup for the SDL 2.0 release 2013-05-18 14:17:52 -07:00
SDL_hints.c Added a hint to control the Windows timer resolution: SDL_HINT_TIMER_RESOLUTION 2013-07-13 03:13:41 -07:00
SDL_log.c Fix Bug 2021: Win32: Stack overflow due to recursive SDL_LogOutput on SDL_LogError without console; fix off-by-one error in SDLtest test suite 2013-08-08 21:29:30 -07:00
SDL.c Updated the name of the iOS platform 2013-08-07 14:00:41 -07:00