Android: Don't remove input configuration related files from old UI.

This commit is contained in:
sigmabeta 2015-06-08 20:07:43 -04:00
parent 6f3279d627
commit d56f27857b
4 changed files with 456 additions and 272 deletions

View File

@ -0,0 +1,128 @@
package org.dolphinemu.dolphinemu.dialogs;
import android.app.AlertDialog;
import android.content.Context;
import android.preference.Preference;
import android.util.Log;
import android.view.InputDevice;
import android.view.KeyEvent;
import android.view.MotionEvent;
import org.dolphinemu.dolphinemu.NativeLibrary;
import org.dolphinemu.dolphinemu.utils.InputConfigFragment;
import java.util.ArrayList;
import java.util.List;
/**
* {@link AlertDialog} derivative that listens for
* motion events from controllers and joysticks.
*/
public final class MotionAlertDialog extends AlertDialog
{
// The selected input preference
private final Preference inputPref;
private boolean firstEvent = true;
private final ArrayList<Float> m_values = new ArrayList<Float>();
/**
* Constructor
*
* @param ctx The current {@link Context}.
* @param inputPref The Preference to show this dialog for.
*/
public MotionAlertDialog(Context ctx, Preference inputPref)
{
super(ctx);
this.inputPref = inputPref;
}
@Override
public boolean onKeyDown(int keyCode, KeyEvent event)
{
Log.d("InputConfigFragment", "Received key event: " + event.getAction());
switch (event.getAction())
{
case KeyEvent.ACTION_DOWN:
case KeyEvent.ACTION_UP:
InputDevice input = event.getDevice();
String bindStr = "Device '" + InputConfigFragment.getInputDesc(input) + "'-Button " + event.getKeyCode();
NativeLibrary.SetConfig("Dolphin.ini", "Android", inputPref.getKey(), bindStr);
inputPref.setSummary(bindStr);
dismiss();
return true;
default:
return false;
}
}
// Method that will be called within dispatchGenericMotionEvent
// that handles joystick/controller movements.
private boolean onMotionEvent(MotionEvent event)
{
if ((event.getSource() & InputDevice.SOURCE_CLASS_JOYSTICK) == 0)
return false;
Log.d("InputConfigFragment", "Received motion event: " + event.getAction());
InputDevice input = event.getDevice();
List<InputDevice.MotionRange> motions = input.getMotionRanges();
if (firstEvent)
{
m_values.clear();
for (InputDevice.MotionRange range : motions)
{
m_values.add(event.getAxisValue(range.getAxis()));
}
firstEvent = false;
}
else
{
for (int a = 0; a < motions.size(); ++a)
{
InputDevice.MotionRange range = motions.get(a);
if (m_values.get(a) > (event.getAxisValue(range.getAxis()) + 0.5f))
{
String bindStr = "Device '" + InputConfigFragment.getInputDesc(input) + "'-Axis " + range.getAxis() + "-";
NativeLibrary.SetConfig("Dolphin.ini", "Android", inputPref.getKey(), bindStr);
inputPref.setSummary(bindStr);
dismiss();
}
else if (m_values.get(a) < (event.getAxisValue(range.getAxis()) - 0.5f))
{
String bindStr = "Device '" + InputConfigFragment.getInputDesc(input) + "'-Axis " + range.getAxis() + "+";
NativeLibrary.SetConfig("Dolphin.ini", "Android", inputPref.getKey(), bindStr);
inputPref.setSummary(bindStr);
dismiss();
}
}
}
return true;
}
@Override
public boolean dispatchKeyEvent(KeyEvent event)
{
if (onKeyDown(event.getKeyCode(), event))
return true;
return super.dispatchKeyEvent(event);
}
@Override
public boolean dispatchGenericMotionEvent(MotionEvent event)
{
if (onMotionEvent(event))
return true;
return super.dispatchGenericMotionEvent(event);
}
}

View File

@ -0,0 +1,56 @@
package org.dolphinemu.dolphinemu.utils;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.preference.Preference;
import android.util.AttributeSet;
import org.dolphinemu.dolphinemu.R;
import org.dolphinemu.dolphinemu.dialogs.MotionAlertDialog;
/**
* {@link Preference} subclass that represents a preference
* used for assigning a key bind.
*/
public final class InputBindingPreference extends Preference
{
/**
* Constructor that is called when inflating an InputBindingPreference from XML.
*
* @param context The current {@link Context}.
* @param attrs The attributes of the XML tag that is inflating the preference.
*/
public InputBindingPreference(Context context, AttributeSet attrs)
{
super(context, attrs);
}
@Override
protected void onClick()
{
// Begin the creation of the input alert.
final MotionAlertDialog dialog = new MotionAlertDialog(getContext(), this);
// Set the cancel button.
dialog.setButton(AlertDialog.BUTTON_NEGATIVE, getContext().getString(R.string.cancel), new AlertDialog.OnClickListener()
{
@Override
public void onClick(DialogInterface dialog, int which)
{
// Do nothing. Just makes the cancel button show up.
}
});
// Set the title and description message.
dialog.setTitle(R.string.input_binding);
dialog.setMessage(String.format(getContext().getString(R.string.input_binding_descrip), getTitle()));
// Don't allow the dialog to close when a user taps
// outside of it. They must press cancel or provide an input.
dialog.setCanceledOnTouchOutside(false);
// Everything is set, show the dialog.
dialog.show();
}
}

File diff suppressed because it is too large Load Diff

View File

@ -68,102 +68,102 @@
android:key="enableController1"
android:title="@string/enable_controller"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="InputA_0"
android:title="@string/button_a"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="InputB_0"
android:title="@string/button_b"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="InputX_0"
android:title="@string/button_x"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="InputY_0"
android:title="@string/button_y"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="InputZ_0"
android:title="@string/button_z"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="InputStart_0"
android:title="@string/button_start"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="DPadUp_0"
android:title="@string/dpad_up"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="DPadDown_0"
android:title="@string/dpad_down"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="DPadLeft_0"
android:title="@string/dpad_left"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="DPadRight_0"
android:title="@string/dpad_right"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="MainUp_0"
android:title="@string/main_stick_up"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="MainDown_0"
android:title="@string/main_stick_down"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="MainLeft_0"
android:title="@string/main_stick_left"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="MainRight_0"
android:title="@string/main_stick_right"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="CStickUp_0"
android:title="@string/c_stick_up"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="CStickDown_0"
android:title="@string/c_stick_down"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="CStickLeft_0"
android:title="@string/c_stick_left"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="CStickRight_0"
android:title="@string/c_stick_right"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="InputL_0"
android:title="@string/trigger_left"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController1"
android:key="InputR_0"
android:title="@string/trigger_right"/>
@ -178,102 +178,102 @@
android:key="enableController2"
android:title="@string/enable_controller"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="InputA_1"
android:title="@string/button_a"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="InputB_1"
android:title="@string/button_b"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="InputX_1"
android:title="@string/button_x"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="InputY_1"
android:title="@string/button_y"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="InputZ_1"
android:title="@string/button_z"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="InputStart_1"
android:title="@string/button_start"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="DPadUp_1"
android:title="@string/dpad_up"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="DPadDown_1"
android:title="@string/dpad_down"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="DPadLeft_1"
android:title="@string/dpad_left"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="DPadRight_1"
android:title="@string/dpad_right"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="MainUp_1"
android:title="@string/main_stick_up"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="MainDown_1"
android:title="@string/main_stick_down"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="MainLeft_1"
android:title="@string/main_stick_left"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="MainRight_1"
android:title="@string/main_stick_right"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="CStickUp_1"
android:title="@string/c_stick_up"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="CStickDown_1"
android:title="@string/c_stick_down"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="CStickLeft_1"
android:title="@string/c_stick_left"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="CStickRight_1"
android:title="@string/c_stick_right"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="InputL_1"
android:title="@string/trigger_left"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController2"
android:key="InputR_1"
android:title="@string/trigger_right"/>
@ -287,102 +287,102 @@
android:key="enableController3"
android:title="@string/enable_controller"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="InputA_2"
android:title="@string/button_a"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="InputB_2"
android:title="@string/button_b"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="InputX_2"
android:title="@string/button_x"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="InputY_2"
android:title="@string/button_y"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="InputZ_2"
android:title="@string/button_z"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="InputStart_2"
android:title="@string/button_start"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="DPadUp_2"
android:title="@string/dpad_up"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="DPadDown_2"
android:title="@string/dpad_down"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="DPadLeft_2"
android:title="@string/dpad_left"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="DPadRight_2"
android:title="@string/dpad_right"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="MainUp_2"
android:title="@string/main_stick_up"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="MainDown_2"
android:title="@string/main_stick_down"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="MainLeft_2"
android:title="@string/main_stick_left"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="MainRight_2"
android:title="@string/main_stick_right"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="CStickUp_2"
android:title="@string/c_stick_up"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="CStickDown_2"
android:title="@string/c_stick_down"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="CStickLeft_2"
android:title="@string/c_stick_left"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="CStickRight_2"
android:title="@string/c_stick_right"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="InputL_2"
android:title="@string/trigger_left"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController3"
android:key="InputR_2"
android:title="@string/trigger_right"/>
@ -397,102 +397,102 @@
android:key="enableController4"
android:title="@string/enable_controller"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="InputA_3"
android:title="@string/button_a"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="InputB_3"
android:title="@string/button_b"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="InputX_3"
android:title="@string/button_x"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="InputY_3"
android:title="@string/button_y"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="InputZ_3"
android:title="@string/button_z"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="InputStart_3"
android:title="@string/button_start"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="DPadUp_3"
android:title="@string/dpad_up"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="DPadDown_3"
android:title="@string/dpad_down"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="DPadLeft_3"
android:title="@string/dpad_left"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="DPadRight_3"
android:title="@string/dpad_right"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="MainUp_3"
android:title="@string/main_stick_up"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="MainDown_3"
android:title="@string/main_stick_down"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="MainLeft_3"
android:title="@string/main_stick_left"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="MainRight_3"
android:title="@string/main_stick_right"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="CStickUp_3"
android:title="@string/c_stick_up"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="CStickDown_3"
android:title="@string/c_stick_down"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="CStickLeft_3"
android:title="@string/c_stick_left"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="CStickRight_3"
android:title="@string/c_stick_right"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="InputL_3"
android:title="@string/trigger_left"/>
<org.dolphinemu.dolphinemu.settings.input.InputBindingPreference
<org.dolphinemu.dolphinemu.utils.InputBindingPreference
android:dependency="enableController4"
android:key="InputR_3"
android:title="@string/trigger_right"/>