diff --git a/Projects/Android/jni/src/Lambda1VR/L1VR_SurfaceView.c b/Projects/Android/jni/src/Lambda1VR/L1VR_SurfaceView.c index d3d6e09..c3561d7 100644 --- a/Projects/Android/jni/src/Lambda1VR/L1VR_SurfaceView.c +++ b/Projects/Android/jni/src/Lambda1VR/L1VR_SurfaceView.c @@ -1488,6 +1488,13 @@ static void ovrApp_HandleInput( ovrApp * app ) sendButtonActionSimple("impulse 100"); } + + //Show multiplayer scoreboard + if (((leftTrackedRemoteState_new.Buttons & ovrButton_Y) != + (leftTrackedRemoteState_old.Buttons & ovrButton_Y))) { + sendButtonAction("+showscores", (leftTrackedRemoteState_old.Buttons & ovrButton_Y)); + } + //We need to record if we have started firing primary so that releasing trigger will stop definitely firing, if user has pushed grip //in meantime, then it wouldn't stop the gun firing and it would get stuck static bool firingPrimary = false; diff --git a/assets/commandline.txt b/assets/commandline.txt new file mode 100644 index 0000000..533a806 --- /dev/null +++ b/assets/commandline.txt @@ -0,0 +1 @@ +xash3d \ No newline at end of file diff --git a/java/com/drbeef/lambda1vr/GLES3JNIActivity.java b/java/com/drbeef/lambda1vr/GLES3JNIActivity.java index d6ec8fa..a73b617 100644 --- a/java/com/drbeef/lambda1vr/GLES3JNIActivity.java +++ b/java/com/drbeef/lambda1vr/GLES3JNIActivity.java @@ -62,6 +62,7 @@ import static android.system.Os.setenv; copy_asset(getFilesDir().getPath(), "extras.pak", false); copy_asset("/sdcard/xash/valve/", "config.cfg", false); // Copy in case user has deleted their config + copy_asset("/sdcard/xash/", "commandline.txt", false); // Copy in case user has deleted their config //Copy modified weapon models if (!(new File("/sdcard/xash/valve/models/no_copy").exists()))