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