*/
void AutoConnectProfiles(void)
{
- int foundProfiles[MAX_PROFILES];
+// int foundProfiles[MAX_PROFILES];
controller1Profile = -1;
controller2Profile = -1;
gamepadIDSlot1 = -1;
}
// Connect the keyboard device (lowest priority)
+ // N.B.: The keyboard is always mapped to profile #0, so we can locate it
+ // easily. :-)
int slot = profile[0].preferredSlot;
if ((slot == CONTROLLER1) && (gamepadIDSlot1 == -1))