From dada5fb5208a2a7fc0bf7fd7e0fea3b9c33c9686 Mon Sep 17 00:00:00 2001 From: TwistedUmbrella Date: Tue, 29 Jul 2014 20:22:37 -0400 Subject: [PATCH] Retain permissions, Lower RS sensitivity limit --- shell/android/AndroidManifest.xml | 2 ++ .../android/src/com/reicast/emulator/GL2JNIActivity.java | 8 ++++---- shell/android/src/com/reicast/emulator/GL2JNINative.java | 8 ++++---- 3 files changed, 10 insertions(+), 8 deletions(-) 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); }