Better expose keyboard/joystick configurations

This commit is contained in:
Aaron Culliney 2015-07-29 21:24:55 -07:00
parent abfa6e743b
commit f5fd2508bf

View File

@ -43,6 +43,38 @@ public class Apple2InputSettingsMenu implements Apple2MenuView {
} }
enum SETTINGS { enum SETTINGS {
KEYBOARD_CONFIGURE {
@Override
public String getTitle(Apple2Activity activity) {
return activity.getResources().getString(R.string.keyboard_configure);
}
@Override
public String getSummary(Apple2Activity activity) {
return activity.getResources().getString(R.string.keyboard_configure_summary);
}
@Override
public void handleSelection(final Apple2Activity activity, final Apple2InputSettingsMenu settingsMenu, boolean isChecked) {
//new Apple2KeyboardSettingsMenu().show();
}
},
JOYSTICK_CONFIGURE {
@Override
public String getTitle(Apple2Activity activity) {
return activity.getResources().getString(R.string.joystick_configure);
}
@Override
public String getSummary(Apple2Activity activity) {
return activity.getResources().getString(R.string.joystick_configure_summary);
}
@Override
public void handleSelection(final Apple2Activity activity, final Apple2InputSettingsMenu settingsMenu, boolean isChecked) {
//new Apple2JoystickSettingsMenu().show();
}
},
TOUCH_MENU_ENABLED { TOUCH_MENU_ENABLED {
@Override @Override
public String getTitle(Apple2Activity activity) { public String getTitle(Apple2Activity activity) {
@ -169,38 +201,6 @@ public class Apple2InputSettingsMenu implements Apple2MenuView {
}); });
builder.show(); builder.show();
} }
},
JOYSTICK_CONFIGURE {
@Override
public String getTitle(Apple2Activity activity) {
return activity.getResources().getString(R.string.joystick_configure);
}
@Override
public String getSummary(Apple2Activity activity) {
return activity.getResources().getString(R.string.joystick_configure_summary);
}
@Override
public void handleSelection(final Apple2Activity activity, final Apple2InputSettingsMenu settingsMenu, boolean isChecked) {
//new Apple2JoystickSettingsMenu().show();
}
},
KEYBOARD_CONFIGURE {
@Override
public String getTitle(Apple2Activity activity) {
return activity.getResources().getString(R.string.keyboard_configure);
}
@Override
public String getSummary(Apple2Activity activity) {
return activity.getResources().getString(R.string.keyboard_configure_summary);
}
@Override
public void handleSelection(final Apple2Activity activity, final Apple2InputSettingsMenu settingsMenu, boolean isChecked) {
//new Apple2KeyboardSettingsMenu().show();
}
}; };
private static View _basicView(Apple2Activity activity, SETTINGS setting, View convertView) { private static View _basicView(Apple2Activity activity, SETTINGS setting, View convertView) {