diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/NativeLibrary.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/NativeLibrary.java index d24a8455a1..248a806982 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/NativeLibrary.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/NativeLibrary.java @@ -118,7 +118,7 @@ public final class NativeLibrary public static final int CLASSIC_DPAD_UP = 309; public static final int CLASSIC_DPAD_DOWN = 310; public static final int CLASSIC_DPAD_LEFT = 311; - public static final int CLASSIC_DPADON_RIGHT = 312; + public static final int CLASSIC_DPAD_RIGHT = 312; public static final int CLASSIC_STICK_LEFT = 313; public static final int CLASSIC_STICK_LEFT_UP = 314; public static final int CLASSIC_STICK_LEFT_DOWN = 315; diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java index a534f16304..2e77e9387e 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java @@ -27,6 +27,7 @@ import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.SeekBar; import android.widget.TextView; +import android.widget.Toast; import com.squareup.picasso.Callback; import com.squareup.picasso.Picasso; @@ -383,7 +384,14 @@ public final class EmulationActivity extends AppCompatActivity public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. - getMenuInflater().inflate(R.menu.menu_emulation, menu); + if (mIsGameCubeGame) + { + getMenuInflater().inflate(R.menu.menu_emulation, menu); + } + else + { + getMenuInflater().inflate(R.menu.menu_emulation_wii, menu); + } return true; } @@ -414,10 +422,11 @@ public final class EmulationActivity extends AppCompatActivity // Enable/Disable specific buttons or the entire input overlay. case R.id.menu_emulation_toggle_controls: { - boolean[] enabledButtons = new boolean[11]; + final SharedPreferences.Editor editor = mPreferences.edit(); + boolean[] enabledButtons = new boolean[14]; AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(R.string.emulation_toggle_controls); - if (mIsGameCubeGame) + if (mIsGameCubeGame || mPreferences.getInt("wiiController", 3) == 0) { for (int i = 0; i < enabledButtons.length; i++) { @@ -429,19 +438,23 @@ public final class EmulationActivity extends AppCompatActivity @Override public void onClick(DialogInterface dialog, int indexSelected, boolean isChecked) { - SharedPreferences.Editor editor = mPreferences.edit(); - - if (mPreferences.getBoolean("buttonToggleGc" + indexSelected, true)) - { - // If the button is enabled, disable it. - editor.putBoolean("buttonToggleGc" + indexSelected, false); - } - else - { - // If the button is disabled, enable it. - editor.putBoolean("buttonToggleGc" + indexSelected, true); - } - editor.apply(); + editor.putBoolean("buttonToggleGc" + indexSelected, isChecked); + } + }); + } + else if (mPreferences.getInt("wiiController", 3) == 4) + { + for (int i = 0; i < enabledButtons.length; i++) + { + enabledButtons[i] = mPreferences.getBoolean("buttonToggleClassic" + i, true); + } + builder.setMultiChoiceItems(R.array.classicButtons, enabledButtons, + new DialogInterface.OnMultiChoiceClickListener() + { + @Override + public void onClick(DialogInterface dialog, int indexSelected, boolean isChecked) + { + editor.putBoolean("buttonToggleClassic" + indexSelected, isChecked); } }); } @@ -451,28 +464,30 @@ public final class EmulationActivity extends AppCompatActivity { enabledButtons[i] = mPreferences.getBoolean("buttonToggleWii" + i, true); } - builder.setMultiChoiceItems(R.array.wiimoteButtons, enabledButtons, - new DialogInterface.OnMultiChoiceClickListener() + if (mPreferences.getInt("wiiController", 3) == 3) { - @Override - public void onClick(DialogInterface dialog, int indexSelected, boolean isChecked) + builder.setMultiChoiceItems(R.array.nunchukButtons, enabledButtons, + new DialogInterface.OnMultiChoiceClickListener() { - SharedPreferences.Editor editor = mPreferences.edit(); - - if (mPreferences.getBoolean("buttonToggleWii" + indexSelected, true)) + @Override + public void onClick(DialogInterface dialog, int indexSelected, boolean isChecked) { - // If the button is enabled, disable it. - editor.putBoolean("buttonToggleWii" + indexSelected, false); + editor.putBoolean("buttonToggleWii" + indexSelected, isChecked); } - else + }); + } + else + { + builder.setMultiChoiceItems(R.array.wiimoteButtons, enabledButtons, + new DialogInterface.OnMultiChoiceClickListener() + { + @Override + public void onClick(DialogInterface dialog, int indexSelected, boolean isChecked) { - // If the button is disabled, enable it. - editor.putBoolean("buttonToggleWii" + indexSelected, true); + editor.putBoolean("buttonToggleWii" + indexSelected, isChecked); } - - editor.apply(); - } - }); + }); + } } builder.setNeutralButton(getString(R.string.emulation_toggle_all), new DialogInterface.OnClickListener() { @@ -489,6 +504,8 @@ public final class EmulationActivity extends AppCompatActivity @Override public void onClick(DialogInterface dialogInterface, int i) { + editor.apply(); + EmulationFragment emulationFragment = (EmulationFragment) getFragmentManager() .findFragmentByTag(EmulationFragment.FRAGMENT_TAG); emulationFragment.refreshInputOverlay(); @@ -556,6 +573,43 @@ public final class EmulationActivity extends AppCompatActivity return; } + // (Wii games only) Change the controller for the input overlay. + case R.id.menu_emulation_choose_controller: + final SharedPreferences.Editor editor = mPreferences.edit(); + AlertDialog.Builder builder = new AlertDialog.Builder(this); + builder.setTitle(R.string.emulation_choose_controller); + builder.setSingleChoiceItems(R.array.controllersEntries, mPreferences.getInt("wiiController", 3), + new DialogInterface.OnClickListener() + { + @Override + public void onClick(DialogInterface dialog, int indexSelected) + { + editor.putInt("wiiController", indexSelected); + + NativeLibrary.SetConfig("WiimoteNew.ini", "Wiimote1", "Extension", + getResources().getStringArray(R.array.controllersValues)[indexSelected]); + } + }); + builder.setPositiveButton(getString(R.string.emulation_done), new DialogInterface.OnClickListener() + { + @Override + public void onClick(DialogInterface dialogInterface, int i) + { + editor.apply(); + + EmulationFragment emulationFragment = (EmulationFragment) getFragmentManager() + .findFragmentByTag(EmulationFragment.FRAGMENT_TAG); + emulationFragment.refreshInputOverlay(); + + Toast.makeText(getApplication(), R.string.emulation_controller_changed, Toast.LENGTH_SHORT).show(); + } + }); + + AlertDialog alertDialog = builder.create(); + alertDialog.show(); + + return; + case R.id.menu_refresh_wiimotes: NativeLibrary.RefreshWiimotes(); return; diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/overlay/InputOverlay.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/overlay/InputOverlay.java index b13892f3e3..1481faaa70 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/overlay/InputOverlay.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/overlay/InputOverlay.java @@ -323,6 +323,191 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener return true; } + private void addGameCubeOverlayControls() + { + if (mPreferences.getBoolean("buttonToggleGc0", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.gcpad_a, ButtonType.BUTTON_A)); + } + if (mPreferences.getBoolean("buttonToggleGc1", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.gcpad_b, ButtonType.BUTTON_B)); + } + if (mPreferences.getBoolean("buttonToggleGc2", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.gcpad_x, ButtonType.BUTTON_X)); + } + if (mPreferences.getBoolean("buttonToggleGc3", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.gcpad_y, ButtonType.BUTTON_Y)); + } + if (mPreferences.getBoolean("buttonToggleGc4", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.gcpad_z, ButtonType.BUTTON_Z)); + } + if (mPreferences.getBoolean("buttonToggleGc5", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.gcpad_start, ButtonType.BUTTON_START)); + } + if (mPreferences.getBoolean("buttonToggleGc6", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.gcpad_l, ButtonType.TRIGGER_L)); + } + if (mPreferences.getBoolean("buttonToggleGc7", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.gcpad_r, ButtonType.TRIGGER_R)); + } + if (mPreferences.getBoolean("buttonToggleGc8", true)) + { + overlayDpads.add(initializeOverlayDpad(getContext(), R.drawable.gcwii_dpad, + ButtonType.BUTTON_UP, ButtonType.BUTTON_DOWN, + ButtonType.BUTTON_LEFT, ButtonType.BUTTON_RIGHT)); + } + if (mPreferences.getBoolean("buttonToggleGc9", true)) + { + overlayJoysticks.add(initializeOverlayJoystick(getContext(), + R.drawable.gcwii_joystick_range, R.drawable.gcwii_joystick, + ButtonType.STICK_MAIN)); + } + if (mPreferences.getBoolean("buttonToggleGc10", true)) + { + overlayJoysticks.add(initializeOverlayJoystick(getContext(), + R.drawable.gcwii_joystick_range, R.drawable.gcpad_c, + ButtonType.STICK_C)); + } + } + + private void addWiimoteOverlayControls() + { + if (mPreferences.getBoolean("buttonToggleWii0", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.wiimote_a, ButtonType.WIIMOTE_BUTTON_A)); + } + if (mPreferences.getBoolean("buttonToggleWii1", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.wiimote_b, ButtonType.WIIMOTE_BUTTON_B)); + } + if (mPreferences.getBoolean("buttonToggleWii2", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.wiimote_one, ButtonType.WIIMOTE_BUTTON_1)); + } + if (mPreferences.getBoolean("buttonToggleWii3", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.wiimote_two, ButtonType.WIIMOTE_BUTTON_2)); + } + if (mPreferences.getBoolean("buttonToggleWii4", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.wiimote_plus, ButtonType.WIIMOTE_BUTTON_PLUS)); + } + if (mPreferences.getBoolean("buttonToggleWii5", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.wiimote_minus, ButtonType.WIIMOTE_BUTTON_MINUS)); + } + if (mPreferences.getBoolean("buttonToggleWii6", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.wiimote_home, ButtonType.WIIMOTE_BUTTON_HOME)); + } + if (mPreferences.getBoolean("buttonToggleWii7", true)) + { + if (mPreferences.getInt("wiiController", 3) == 2) + { + overlayDpads.add(initializeOverlayDpad(getContext(), R.drawable.gcwii_dpad, + ButtonType.WIIMOTE_RIGHT, ButtonType.WIIMOTE_LEFT, + ButtonType.WIIMOTE_UP, ButtonType.WIIMOTE_DOWN)); + } + else + { + overlayDpads.add(initializeOverlayDpad(getContext(), R.drawable.gcwii_dpad, + ButtonType.WIIMOTE_UP, ButtonType.WIIMOTE_DOWN, + ButtonType.WIIMOTE_LEFT, ButtonType.WIIMOTE_RIGHT)); + } + } + } + + private void addNunchukOverlayControls() + { + if (mPreferences.getBoolean("buttonToggleWii8", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.nunchuk_c, ButtonType.NUNCHUK_BUTTON_C)); + } + if (mPreferences.getBoolean("buttonToggleWii9", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.nunchuk_z, ButtonType.NUNCHUK_BUTTON_Z)); + } + if (mPreferences.getBoolean("buttonToggleWii10", true)) + { + overlayJoysticks.add(initializeOverlayJoystick(getContext(), + R.drawable.gcwii_joystick_range, R.drawable.gcwii_joystick, + ButtonType.NUNCHUK_STICK)); + } + } + + private void addClassicOverlayControls() + { + if (mPreferences.getBoolean("buttonToggleClassic0", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.classic_a, ButtonType.CLASSIC_BUTTON_A)); + } + if (mPreferences.getBoolean("buttonToggleClassic1", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.classic_b, ButtonType.CLASSIC_BUTTON_B)); + } + if (mPreferences.getBoolean("buttonToggleClassic2", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.classic_x, ButtonType.CLASSIC_BUTTON_X)); + } + if (mPreferences.getBoolean("buttonToggleClassic3", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.classic_y, ButtonType.CLASSIC_BUTTON_Y)); + } + if (mPreferences.getBoolean("buttonToggleClassic4", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.wiimote_plus, ButtonType.CLASSIC_BUTTON_PLUS)); + } + if (mPreferences.getBoolean("buttonToggleClassic5", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.wiimote_minus, ButtonType.CLASSIC_BUTTON_MINUS)); + } + if (mPreferences.getBoolean("buttonToggleClassic6", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.wiimote_home, ButtonType.CLASSIC_BUTTON_HOME)); + } + if (mPreferences.getBoolean("buttonToggleClassic7", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.classic_l, ButtonType.CLASSIC_TRIGGER_L)); + } + if (mPreferences.getBoolean("buttonToggleClassic8", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.classic_r, ButtonType.CLASSIC_TRIGGER_R)); + } + if (mPreferences.getBoolean("buttonToggleClassic9", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.classic_zl, ButtonType.CLASSIC_BUTTON_ZL)); + } + if (mPreferences.getBoolean("buttonToggleClassic10", true)) + { + overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.classic_zr, ButtonType.CLASSIC_BUTTON_ZR)); + } + if (mPreferences.getBoolean("buttonToggleClassic11", true)) + { + overlayDpads.add(initializeOverlayDpad(getContext(), R.drawable.gcwii_dpad, + ButtonType.CLASSIC_DPAD_UP, ButtonType.CLASSIC_DPAD_DOWN, + ButtonType.CLASSIC_DPAD_LEFT, ButtonType.CLASSIC_DPAD_RIGHT)); + } + if (mPreferences.getBoolean("buttonToggleClassic12", true)) + { + overlayJoysticks.add(initializeOverlayJoystick(getContext(), + R.drawable.gcwii_joystick_range, R.drawable.gcwii_joystick, + ButtonType.CLASSIC_STICK_LEFT)); + } + if (mPreferences.getBoolean("buttonToggleClassic13", true)) + { + overlayJoysticks.add(initializeOverlayJoystick(getContext(), + R.drawable.gcwii_joystick_range, R.drawable.gcwii_joystick, + ButtonType.CLASSIC_STICK_RIGHT)); + } + } + public void refreshControls() { // Remove all the overlay buttons from the HashSet. @@ -331,110 +516,20 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener overlayJoysticks.removeAll(overlayJoysticks); // Add all the enabled overlay items back to the HashSet. - if (EmulationActivity.isGameCubeGame()) + if (EmulationActivity.isGameCubeGame() || mPreferences.getInt("wiiController", 3) == 0) { - // GameCube - if (mPreferences.getBoolean("buttonToggleGc0", true)) - { - overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.gcpad_a, ButtonType.BUTTON_A)); - } - if (mPreferences.getBoolean("buttonToggleGc1", true)) - { - overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.gcpad_b, ButtonType.BUTTON_B)); - } - if (mPreferences.getBoolean("buttonToggleGc2", true)) - { - overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.gcpad_x, ButtonType.BUTTON_X)); - } - if (mPreferences.getBoolean("buttonToggleGc3", true)) - { - overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.gcpad_y, ButtonType.BUTTON_Y)); - } - if (mPreferences.getBoolean("buttonToggleGc4", true)) - { - overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.gcpad_z, ButtonType.BUTTON_Z)); - } - if (mPreferences.getBoolean("buttonToggleGc5", true)) - { - overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.gcpad_start, ButtonType.BUTTON_START)); - } - if (mPreferences.getBoolean("buttonToggleGc6", true)) - { - overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.gcpad_l, ButtonType.TRIGGER_L)); - } - if (mPreferences.getBoolean("buttonToggleGc7", true)) - { - overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.gcpad_r, ButtonType.TRIGGER_R)); - } - if (mPreferences.getBoolean("buttonToggleGc8", true)) - { - overlayDpads.add(initializeOverlayDpad(getContext(), R.drawable.gcwii_dpad, - ButtonType.BUTTON_UP, ButtonType.BUTTON_DOWN, - ButtonType.BUTTON_LEFT, ButtonType.BUTTON_RIGHT)); - } - if (mPreferences.getBoolean("buttonToggleGc9", true)) - { - overlayJoysticks.add(initializeOverlayJoystick(getContext(), - R.drawable.gcwii_joystick_range, R.drawable.gcwii_joystick, - ButtonType.STICK_MAIN)); - } - if (mPreferences.getBoolean("buttonToggleGc10", true)) - { - overlayJoysticks.add(initializeOverlayJoystick(getContext(), - R.drawable.gcwii_joystick_range, R.drawable.gcpad_c, - ButtonType.STICK_C)); - } + addGameCubeOverlayControls(); + } + else if (mPreferences.getInt("wiiController", 3) == 4) + { + addClassicOverlayControls(); } else { - // Wiimote + Nunchuk - if (mPreferences.getBoolean("buttonToggleWii0", true)) + addWiimoteOverlayControls(); + if (mPreferences.getInt("wiiController", 3) == 3) { - overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.wiimote_a, ButtonType.WIIMOTE_BUTTON_A)); - } - if (mPreferences.getBoolean("buttonToggleWii1", true)) - { - overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.wiimote_b, ButtonType.WIIMOTE_BUTTON_B)); - } - if (mPreferences.getBoolean("buttonToggleWii2", true)) - { - overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.wiimote_one, ButtonType.WIIMOTE_BUTTON_1)); - } - if (mPreferences.getBoolean("buttonToggleWii3", true)) - { - overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.wiimote_two, ButtonType.WIIMOTE_BUTTON_2)); - } - if (mPreferences.getBoolean("buttonToggleWii4", true)) - { - overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.wiimote_plus, ButtonType.WIIMOTE_BUTTON_PLUS)); - } - if (mPreferences.getBoolean("buttonToggleWii5", true)) - { - overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.wiimote_minus, ButtonType.WIIMOTE_BUTTON_MINUS)); - } - if (mPreferences.getBoolean("buttonToggleWii6", true)) - { - overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.wiimote_home, ButtonType.WIIMOTE_BUTTON_HOME)); - } - if (mPreferences.getBoolean("buttonToggleWii7", true)) - { - overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.nunchuk_c, ButtonType.NUNCHUK_BUTTON_C)); - } - if (mPreferences.getBoolean("buttonToggleWii8", true)) - { - overlayButtons.add(initializeOverlayButton(getContext(), R.drawable.nunchuk_z, ButtonType.NUNCHUK_BUTTON_Z)); - } - if (mPreferences.getBoolean("buttonToggleWii9", true)) - { - overlayDpads.add(initializeOverlayDpad(getContext(), R.drawable.gcwii_dpad, - ButtonType.WIIMOTE_UP, ButtonType.WIIMOTE_DOWN, - ButtonType.WIIMOTE_LEFT, ButtonType.WIIMOTE_RIGHT)); - } - if (mPreferences.getBoolean("buttonToggleWii10", true)) - { - overlayJoysticks.add(initializeOverlayJoystick(getContext(), - R.drawable.gcwii_joystick_range, R.drawable.gcwii_joystick, - ButtonType.NUNCHUK_STICK)); + addNunchukOverlayControls(); } } @@ -506,7 +601,7 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener case ButtonType.BUTTON_Z: case ButtonType.TRIGGER_L: case ButtonType.TRIGGER_R: - scale = 0.22f; + scale = 0.225f; break; case ButtonType.BUTTON_START: scale = 0.075f; @@ -518,8 +613,17 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener case ButtonType.WIIMOTE_BUTTON_PLUS: case ButtonType.WIIMOTE_BUTTON_MINUS: case ButtonType.WIIMOTE_BUTTON_HOME: + case ButtonType.CLASSIC_BUTTON_PLUS: + case ButtonType.CLASSIC_BUTTON_MINUS: + case ButtonType.CLASSIC_BUTTON_HOME: scale = 0.0625f; break; + case ButtonType.CLASSIC_TRIGGER_L: + case ButtonType.CLASSIC_TRIGGER_R: + case ButtonType.CLASSIC_BUTTON_ZL: + case ButtonType.CLASSIC_BUTTON_ZR: + scale = 0.25f; + break; default: scale = 0.125f; break; @@ -583,11 +687,11 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener case ButtonType.BUTTON_UP: scale = 0.2375f; break; - case ButtonType.WIIMOTE_UP: - scale = 0.2125f; + case ButtonType.CLASSIC_DPAD_UP: + scale = 0.275f; break; default: - scale = 0.275f; + scale = 0.2125f; break; } diff --git a/Source/Android/app/src/main/res/menu/menu_emulation.xml b/Source/Android/app/src/main/res/menu/menu_emulation.xml index 244fe36e52..ac7cfd6835 100644 --- a/Source/Android/app/src/main/res/menu/menu_emulation.xml +++ b/Source/Android/app/src/main/res/menu/menu_emulation.xml @@ -2,9 +2,6 @@ xmlns:tools="http://schemas.android.com/tools" tools:context="org.dolphinemu.dolphinemu.activities.EmulationActivity"> - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Source/Android/app/src/main/res/values/arrays.xml b/Source/Android/app/src/main/res/values/arrays.xml index 12fe053076..9ecec4e04b 100644 --- a/Source/Android/app/src/main/res/values/arrays.xml +++ b/Source/Android/app/src/main/res/values/arrays.xml @@ -32,7 +32,7 @@ 3 - + "None" "Nunchuk" @@ -179,6 +179,32 @@ 12 + + Disabled + Emulated + Real Wii Remote (DolphinBar required) + + + 0 + 1 + 2 + + + + GameCube Controller + Wii Remote + Horizontal Wii Remote + Wii Remote + Nunchuk + Classic Controller + + + None + None + None + Nunchuk + Classic + + A B @@ -193,17 +219,6 @@ C Stick - - Disabled - Emulated - Real Wiimote (DolphinBar required) - - - 0 - 1 - 2 - - A B @@ -212,10 +227,38 @@ + - Home + D-Pad + + + + A + B + 1 + 2 + + + - + Home + D-Pad C Z - D-Pad Nunchuk Stick + + a + b + x + y + + + - + Home + L + R + ZL + ZR + D-Pad + Left Stick + Right Stick + + diff --git a/Source/Android/app/src/main/res/values/strings.xml b/Source/Android/app/src/main/res/values/strings.xml index 8e47f68acd..bf9f1741bd 100644 --- a/Source/Android/app/src/main/res/values/strings.xml +++ b/Source/Android/app/src/main/res/values/strings.xml @@ -364,6 +364,8 @@ Toggle Controls Toggle All Adjust Scale + Choose Controller + You may have to reload the game after changing extensions. Enable Vibration