|
@@ -428,12 +428,7 @@ public class RetroArchEmulatorActivity extends RetroActivityCamera
|
|
|
if (requestCode == 200) {
|
|
|
if (resultCode == 201) {//继续游戏
|
|
|
gameDialogClosed();
|
|
|
- setJoystickBindJoyKeyNative(0, InputCode.JOYPAD_A, 96);
|
|
|
- setJoystickBindJoyKeyNative(0, InputCode.JOYPAD_B, 97);
|
|
|
- setJoystickBindJoyKeyNative(0, InputCode.JOYPAD_X, 99);
|
|
|
- setJoystickBindJoyKeyNative(0, InputCode.JOYPAD_Y, 100);
|
|
|
- setJoystickBindJoyKeyNative(0, InputCode.JOYPAD_UP, InputCode.JOYPAD_HAT_UP_MASK);
|
|
|
- setJoystickBindJoyKeyNative(0, InputCode.JOYPAD_DOWN, InputCode.JOYPAD_HAT_DOWN_MASK);
|
|
|
+// testSetKey();
|
|
|
if (data != null) {
|
|
|
//增加完美像素单独开关,避免混淆
|
|
|
boolean isPixelPerfect = data.getBooleanExtra("is_pixelperfect", false);
|
|
@@ -499,6 +494,32 @@ public class RetroArchEmulatorActivity extends RetroActivityCamera
|
|
|
super.onActivityResult(requestCode, resultCode, data);
|
|
|
}
|
|
|
|
|
|
+// private void testSetKey() {
|
|
|
+// int[] javaKey = {
|
|
|
+// InputCode.JoypadBindKeySet.JOYPAD_BTN_A,
|
|
|
+// InputCode.JoypadBindKeySet.JOYPAD_BTN_B,
|
|
|
+// };
|
|
|
+// int[] emulatorKey = {
|
|
|
+// InputCode.JoypadBindSet.JOYPAD_B,
|
|
|
+// InputCode.JoypadBindSet.JOYPAD_Y ,
|
|
|
+// InputCode.JoypadBindSet.JOYPAD_SELECT = 2;
|
|
|
+// InputCode.JoypadBindSet.JOYPAD_START = 3;
|
|
|
+// InputCode.JoypadBindSet.JOYPAD_UP = 4;
|
|
|
+// InputCode.JoypadBindSet.JOYPAD_DOWN = 5;
|
|
|
+// InputCode.JoypadBindSet.JOYPAD_LEFT = 6;
|
|
|
+// InputCode.JoypadBindSet.JOYPAD_RIGHT = 7;
|
|
|
+// InputCode.JoypadBindSet.JOYPAD_A = 8;
|
|
|
+// InputCode.JoypadBindSet.JOYPAD_X = 9;
|
|
|
+// InputCode.JoypadBindSet.JOYPAD_L = 10;
|
|
|
+// InputCode.JoypadBindSet.JOYPAD_R = 11;
|
|
|
+// InputCode.JoypadBindSet.JOYPAD_L2 = 12;
|
|
|
+// InputCode.JoypadBindSet.JOYPAD_R2 = 13;
|
|
|
+// InputCode.JoypadBindSet.JOYPAD_L3 = 14;
|
|
|
+// InputCode.JoypadBindSet.JOYPAD_R3 = 15;
|
|
|
+// };
|
|
|
+// setJoystickBindNative(0, javaKey, emulatorKey);
|
|
|
+// }
|
|
|
+
|
|
|
|
|
|
private void resetScreenForPerfect(int multiple) {
|
|
|
if (system != null && system.systemAVInfo != null) {
|