diff --git a/shell/android/AndroidManifest.xml b/shell/android/AndroidManifest.xml index d45260866..8595ff3cd 100644 --- a/shell/android/AndroidManifest.xml +++ b/shell/android/AndroidManifest.xml @@ -9,7 +9,9 @@ android:targetSdkVersion="19" /> + + diff --git a/shell/android/src/com/reicast/emulator/GL2JNIActivity.java b/shell/android/src/com/reicast/emulator/GL2JNIActivity.java index beef10062..b180bea4e 100644 --- a/shell/android/src/com/reicast/emulator/GL2JNIActivity.java +++ b/shell/android/src/com/reicast/emulator/GL2JNIActivity.java @@ -282,10 +282,10 @@ public class GL2JNIActivity extends Activity { GL2JNIView.rt[playerNum] = (int) (R2 * 255); if (prefs.getBoolean("right_buttons", true)) { - if (RS_Y > 0.5) { + if (RS_Y > 0.25) { handle_key(playerNum, pad.map[playerNum][0]/* A */, true); pad.wasKeyStick[playerNum] = true; - } else if (RS_Y < 0.5) { + } else if (RS_Y < 0.25) { handle_key(playerNum, pad.map[playerNum][1]/* B */, true); pad.wasKeyStick[playerNum] = true; } else if (pad.wasKeyStick[playerNum]){ @@ -294,10 +294,10 @@ public class GL2JNIActivity extends Activity { pad.wasKeyStick[playerNum] = false; } } else { - if (RS_Y > 0.5) { + if (RS_Y > 0.25) { GL2JNIView.rt[playerNum] = (int) (RS_Y * 255); GL2JNIView.lt[playerNum] = (int) (L2 * 255); - } else if (RS_Y < 0.5) { + } else if (RS_Y < 0.25) { GL2JNIView.rt[playerNum] = (int) (R2 * 255); GL2JNIView.lt[playerNum] = (int) (-(RS_Y) * 255); } diff --git a/shell/android/src/com/reicast/emulator/GL2JNINative.java b/shell/android/src/com/reicast/emulator/GL2JNINative.java index 7c8bcb6f7..8d69f40cc 100644 --- a/shell/android/src/com/reicast/emulator/GL2JNINative.java +++ b/shell/android/src/com/reicast/emulator/GL2JNINative.java @@ -372,10 +372,10 @@ public class GL2JNINative extends NativeActivity { GL2JNIView.rt[playerNum] = (int) (R2 * 255); if (prefs.getBoolean("right_buttons", true)) { - if (RS_Y > 0.5) { + if (RS_Y > 0.25) { handle_key(playerNum, pad.map[playerNum][0]/* A */, true); pad.wasKeyStick[playerNum] = true; - } else if (RS_Y < 0.5) { + } else if (RS_Y < 0.25) { handle_key(playerNum, pad.map[playerNum][1]/* B */, true); pad.wasKeyStick[playerNum] = true; } else if (pad.wasKeyStick[playerNum]){ @@ -384,10 +384,10 @@ public class GL2JNINative extends NativeActivity { pad.wasKeyStick[playerNum] = false; } } else { - if (RS_Y > 0.5) { + if (RS_Y > 0.25) { GL2JNIView.rt[playerNum] = (int) (RS_Y * 255); GL2JNIView.lt[playerNum] = (int) (L2 * 255); - } else if (RS_Y < 0.5) { + } else if (RS_Y < 0.25) { GL2JNIView.rt[playerNum] = (int) (R2 * 255); GL2JNIView.lt[playerNum] = (int) (-(RS_Y) * 255); }