]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/profile.cpp
Added logging to Gamepad::CheckButtonPressed().
[virtualjaguar] / src / gui / profile.cpp
index 854d8cb038b05408e886b6a51af9ebf66c736494..434d01d8ac0918d7d183cb96ab816a3fae99de94 100644 (file)
@@ -357,7 +357,7 @@ One more stab at this...
 */
 void AutoConnectProfiles(void)
 {
-       int foundProfiles[MAX_PROFILES];
+//     int foundProfiles[MAX_PROFILES];
        controller1Profile = -1;
        controller2Profile = -1;
        gamepadIDSlot1 = -1;
@@ -443,6 +443,8 @@ void AutoConnectProfiles(void)
        }
 
        // 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))