Wed, 21 Aug 2013 12:12:04 -0700Fixed compiling on old versions of the DirectX SDK
Sam Lantinga [Wed, 21 Aug 2013 12:12:04 -0700] rev 7686
Fixed compiling on old versions of the DirectX SDK

Wed, 21 Aug 2013 10:32:04 -0700SDL
Sam Lantinga [Wed, 21 Aug 2013 10:32:04 -0700] rev 7685
SDL
- detect that you tried to open a gamecontroller in xinput mode and failed, then re-get the mapping for the dinput variant you did open (and most likely now just fail the open)

CR: SamL

Wed, 21 Aug 2013 10:31:44 -0700Fix 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.
Sam Lantinga [Wed, 21 Aug 2013 10:31:44 -0700] rev 7684
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.

Wed, 21 Aug 2013 10:07:48 -0700Fixed crash if the IC isn't set up for some reason (bad X11 locale?)
Sam Lantinga [Wed, 21 Aug 2013 10:07:48 -0700] rev 7683
Fixed crash if the IC isn't set up for some reason (bad X11 locale?)

Wed, 21 Aug 2013 10:34:32 -0300Fix a couple of warnings
Gabriel Jacobo [Wed, 21 Aug 2013 10:34:32 -0300] rev 7682
Fix a couple of warnings

Wed, 21 Aug 2013 10:27:39 -0300Patched to compile on Darwin
Gabriel Jacobo [Wed, 21 Aug 2013 10:27:39 -0300] rev 7681
Patched to compile on Darwin

Wed, 21 Aug 2013 10:13:12 -0300More fixes for -Wdeclaration-after-statement
Gabriel Jacobo [Wed, 21 Aug 2013 10:13:12 -0300] rev 7680
More fixes for -Wdeclaration-after-statement

Wed, 21 Aug 2013 10:12:16 -0300Fixes for -Wdeclaration-after-statement
Gabriel Jacobo [Wed, 21 Aug 2013 10:12:16 -0300] rev 7679
Fixes for -Wdeclaration-after-statement

Wed, 21 Aug 2013 09:47:10 -0300OCD fixes: Adds a space after /* (glory to regular expressions!)
Gabriel Jacobo [Wed, 21 Aug 2013 09:47:10 -0300] rev 7678
OCD fixes: Adds a space after /* (glory to regular expressions!)

Wed, 21 Aug 2013 09:43:09 -0300OCD fixes: Adds a space before */
Gabriel Jacobo [Wed, 21 Aug 2013 09:43:09 -0300] rev 7677
OCD fixes: Adds a space before */