From 20a8b2180074f2dd80d6a56371c2e684a634da17 Mon Sep 17 00:00:00 2001 From: nakeee <nakeee@gmail.com> Date: Thu, 25 Sep 2008 21:36:00 +0000 Subject: [PATCH] set defaults only for first controller git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@698 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp b/Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp index 10a9e5815c..8da6ac119b 100644 --- a/Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp +++ b/Source/Plugins/Plugin_PadSimple/Src/PadSimple.cpp @@ -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