Merge pull request #7340 from zackhow/enable-touch-con

Android: Set GC controller 1 to enabled if settings don't exist
This commit is contained in:
JosJuice 2018-08-19 20:32:21 +02:00 committed by GitHub
commit c3b0208de6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -481,7 +481,8 @@ public final class SettingsFile
String key = SettingsFile.KEY_GCPAD_TYPE + i; String key = SettingsFile.KEY_GCPAD_TYPE + i;
if (coreSection.getSetting(key) == null) if (coreSection.getSetting(key) == null)
{ {
Setting gcPadSetting = new IntSetting(key, Settings.SECTION_INI_CORE,0); // Set GameCube controller 1 to enabled, all others disabled
Setting gcPadSetting = new IntSetting(key, Settings.SECTION_INI_CORE, i == 0 ? 6 : 0);
coreSection.putSetting(gcPadSetting); coreSection.putSetting(gcPadSetting);
} }
} }