Android: prevent auxilliary from overriding hardware

This commit is contained in:
Ender's Games 2018-08-18 15:28:41 -04:00
parent a2a3a11412
commit cd22816c1b
2 changed files with 2 additions and 2 deletions

View File

@ -270,7 +270,7 @@ public class GL2JNIActivity extends Activity {
handle_key(playerNum, pad.map[playerNum][1], false);
pad.wasKeyStick[playerNum] = false;
}
} else {
} else if (L2 == 0 && R2 ==0) {
if (RS_Y > 0.25) {
GL2JNIView.rt[playerNum] = (int) (RS_Y * 255);
GL2JNIView.lt[playerNum] = (int) (L2 * 255);

View File

@ -332,7 +332,7 @@ public class GL2JNINative extends NativeActivity {
handle_key(playerNum, pad.map[playerNum][1], false);
pad.wasKeyStick[playerNum] = false;
}
} else {
} else if (L2 == 0 && R2 ==0) {
if (RS_Y > 0.25) {
GL2JNIView.rt[playerNum] = (int) (RS_Y * 255);
GL2JNIView.lt[playerNum] = (int) (L2 * 255);