Permalink
Browse files

Merge pull request #7336 from zackhow/extension-ui-bug

Android: Fix wiimote extension from defaulting to none in UI
  • Loading branch information...
JosJuice committed Aug 19, 2018
2 parents 5eca5f6 + a20513e commit b2880d0330fc4c03fb244207c6205dacb8cf1c81
@@ -553,7 +553,7 @@ private void addWiimoteSubSettings(ArrayList<SettingsItem> sl, int wiimoteNumber
SettingSection bindingsSection = mSettings.getSection(Settings.SECTION_BINDINGS);
// Bindings use controller numbers 4-7 (0-3 are GameCube), but the extension setting uses 1-4.
IntSetting extension = new IntSetting(SettingsFile.KEY_WIIMOTE_EXTENSION, Settings.SECTION_WIIMOTE + wiimoteNumber, getExtensionValue(wiimoteNumber), MenuTag.getWiimoteExtensionMenuTag(wiimoteNumber));
IntSetting extension = new IntSetting(SettingsFile.KEY_WIIMOTE_EXTENSION, Settings.SECTION_WIIMOTE + wiimoteNumber, getExtensionValue(wiimoteNumber - 3), MenuTag.getWiimoteExtensionMenuTag(wiimoteNumber));
Setting bindA = bindingsSection.getSetting(SettingsFile.KEY_WIIBIND_A + wiimoteNumber);
Setting bindB = bindingsSection.getSetting(SettingsFile.KEY_WIIBIND_B + wiimoteNumber);
Setting bind1 = bindingsSection.getSetting(SettingsFile.KEY_WIIBIND_1 + wiimoteNumber);

0 comments on commit b2880d0

Please sign in to comment.