set defaults only for first controller

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@698 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2008-09-25 21:36:00 +00:00
parent fa6a7a2242
commit 20a8b21800

View File

@ -681,7 +681,8 @@ void LoadConfig()
for (int x = 0; x < NUMCONTROLS; x++)
{
file.Get(SectionName, controlNames[x], &pad[i].keyForControl[x], defaultKeyForControl[x]);
file.Get(SectionName, controlNames[x], &pad[i].keyForControl[x],
(i==0)?defaultKeyForControl[x]:0);
#ifndef _WIN32
// In linux we have a problem assigning the upper case of the
// keys because they're not being recognized