Android: Don't divide SI device by 6
It's a complete coincidence that both SIDEVICE_GC_CONTROLLER (6) and SIDEVICE_WIIU_ADAPTER (12) are divisible by 6. Dividing by 6 because of that doesn't make sense, especially not if we want to add support for more kinds of SI devices on Android later.
This commit is contained in:
parent
5d11dc1926
commit
9f3ed1f9f3
|
@ -151,7 +151,7 @@ public final class SettingsActivityPresenter
|
|||
if (value != 0) // Not disabled
|
||||
{
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putInt(SettingsFragmentPresenter.ARG_CONTROLLER_TYPE, value / 6);
|
||||
bundle.putInt(SettingsFragmentPresenter.ARG_CONTROLLER_TYPE, value);
|
||||
mView.showSettingsFragment(key, bundle, true, mGameId);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -833,7 +833,7 @@ public final class SettingsFragmentPresenter
|
|||
|
||||
private void addGcPadSubSettings(ArrayList<SettingsItem> sl, int gcPadNumber, int gcPadType)
|
||||
{
|
||||
if (gcPadType == 1) // Emulated
|
||||
if (gcPadType == 6) // Emulated
|
||||
{
|
||||
sl.add(new HeaderSetting(mContext, R.string.generic_buttons, 0));
|
||||
sl.add(new InputBindingSetting(mContext, Settings.FILE_DOLPHIN, Settings.SECTION_BINDINGS,
|
||||
|
@ -892,7 +892,7 @@ public final class SettingsFragmentPresenter
|
|||
SettingsFile.KEY_EMU_RUMBLE + gcPadNumber, R.string.emulation_control_rumble,
|
||||
mGameID));
|
||||
}
|
||||
else // Adapter
|
||||
else if (gcPadType == 12) // Adapter
|
||||
{
|
||||
LegacyBooleanSetting rumble = new LegacyBooleanSetting(Settings.FILE_DOLPHIN,
|
||||
Settings.SECTION_INI_CORE, SettingsFile.KEY_GCADAPTER_RUMBLE + gcPadNumber, false);
|
||||
|
|
Loading…
Reference in New Issue