ouya again
This commit is contained in:
parent
3f4a97ecc1
commit
f1b384ac2e
|
@ -190,7 +190,7 @@ public class GL2JNIActivity extends Activity {
|
|||
if (pad.isXperiaPlay) {
|
||||
menu_spec = getApplicationContext().getString(R.string.menu_button);
|
||||
} else if (pad.isOuyaOrTV) {
|
||||
menu_spec = getApplicationContext().getString(R.string.right_button);
|
||||
menu_spec = getApplicationContext().getString(R.string.menu_button);
|
||||
} else {
|
||||
menu_spec = getApplicationContext().getString(R.string.back_button);
|
||||
}
|
||||
|
@ -520,7 +520,7 @@ public class GL2JNIActivity extends Activity {
|
|||
return showMenu();
|
||||
}
|
||||
}
|
||||
if (keyCode == KeyEvent.KEYCODE_BACK) {
|
||||
if (keyCode == KeyEvent.KEYCODE_BACK || keyCode == OuyaController.BUTTON_MENU) {
|
||||
if (pad.isXperiaPlay) {
|
||||
return true;
|
||||
} else {
|
||||
|
|
|
@ -97,9 +97,7 @@ public class Gamepad {
|
|||
OuyaController.BUTTON_DPAD_LEFT, key_CONT_DPAD_LEFT,
|
||||
OuyaController.BUTTON_DPAD_RIGHT, key_CONT_DPAD_RIGHT,
|
||||
|
||||
OuyaController.BUTTON_MENU, key_CONT_START,
|
||||
getStartButtonCode(), key_CONT_START,
|
||||
OuyaController.BUTTON_R3, getSelectButtonCode()
|
||||
OuyaController.BUTTON_R3, key_CONT_START,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue