X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fprofile.cpp;h=434d01d8ac0918d7d183cb96ab816a3fae99de94;hb=e310c1d53915d306d8aa9a1bed9bac489bd30b03;hp=854d8cb038b05408e886b6a51af9ebf66c736494;hpb=0d7e70c5e34e691b15365901951700f43242065f;p=virtualjaguar diff --git a/src/gui/profile.cpp b/src/gui/profile.cpp index 854d8cb..434d01d 100644 --- a/src/gui/profile.cpp +++ b/src/gui/profile.cpp @@ -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))