diff --git a/Projects/Android/.idea/encodings.xml b/Projects/Android/.idea/encodings.xml new file mode 100644 index 0000000..15a15b2 --- /dev/null +++ b/Projects/Android/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Projects/Android/Android.iml b/Projects/Android/Android.iml index b8c2bb6..0fe7ea9 100644 --- a/Projects/Android/Android.iml +++ b/Projects/Android/Android.iml @@ -1,163 +1,16 @@ - + - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - \ No newline at end of file diff --git a/Projects/Android/AndroidManifest.xml b/Projects/Android/AndroidManifest.xml index 71e6423..1c45517 100644 --- a/Projects/Android/AndroidManifest.xml +++ b/Projects/Android/AndroidManifest.xml @@ -2,7 +2,7 @@ + android:versionName="0.1.2" android:installLocation="auto" > diff --git a/Projects/Android/jni/src/Lambda1VR/L1VR_SurfaceView.c b/Projects/Android/jni/src/Lambda1VR/L1VR_SurfaceView.c index acc05c7..0c4ef4b 100644 --- a/Projects/Android/jni/src/Lambda1VR/L1VR_SurfaceView.c +++ b/Projects/Android/jni/src/Lambda1VR/L1VR_SurfaceView.c @@ -1263,9 +1263,9 @@ static void ovrApp_HandleInput( ovrApp * app ) positional_movementSideways, positional_movementForward); - //Jump + //Jump (B Button) handleTrackedControllerButton(&rightTrackedRemoteState_new, - &rightTrackedRemoteState_old, ovrButton_A, K_SPACE); + &rightTrackedRemoteState_old, ovrButton_B, K_SPACE); if (!r_lefthand->integer) { if (dominantGripPushed && (GetTimeInMilliSeconds() - dominantGripPushTime) > vr_reloadtimeoutms->integer) @@ -1290,11 +1290,11 @@ static void ovrApp_HandleInput( ovrApp * app ) } } - //Duck with B - if ((rightTrackedRemoteState_new.Buttons & ovrButton_B) != - (rightTrackedRemoteState_old.Buttons & ovrButton_B)) { + //Duck with A + if ((rightTrackedRemoteState_new.Buttons & ovrButton_A) != + (rightTrackedRemoteState_old.Buttons & ovrButton_A)) { - sendButtonAction("+duck", (rightTrackedRemoteState_new.Buttons & ovrButton_B)); + sendButtonAction("+duck", (rightTrackedRemoteState_new.Buttons & ovrButton_A)); } } diff --git a/Projects/Android/jni/src/hlsdk-xash3d/cl_dll/vr_renderer.cpp b/Projects/Android/jni/src/hlsdk-xash3d/cl_dll/vr_renderer.cpp index c37112a..640699e 100644 --- a/Projects/Android/jni/src/hlsdk-xash3d/cl_dll/vr_renderer.cpp +++ b/Projects/Android/jni/src/hlsdk-xash3d/cl_dll/vr_renderer.cpp @@ -52,7 +52,8 @@ void VRRenderer::VidInit() void VRRenderer::Frame(double time) { // make sure these are always properly set - gEngfuncs.pfnClientCmd("fps_max 150"); + //GB - Changing to 72 to see if it fixes physics + gEngfuncs.pfnClientCmd("fps_max 72"); //gEngfuncs.pfnClientCmd("fps_override 1"); gEngfuncs.pfnClientCmd("gl_vsync 0"); gEngfuncs.pfnClientCmd("default_fov 110"); diff --git a/Projects/Android/local.properties b/Projects/Android/local.properties index 0ec43c0..0dea17b 100644 --- a/Projects/Android/local.properties +++ b/Projects/Android/local.properties @@ -4,6 +4,6 @@ # Location of the SDK. This is only used by Gradle. # For customization when using a Version Control System, please read the # header note. -#Sat Oct 13 12:29:31 BST 2018 -ndk.dir=C\:\\Users\\Simon\\AppData\\Local\\Android\\Sdk\\ndk-bundle -sdk.dir=C\:\\Users\\Simon\\AppData\\Local\\Android\\sdk +#Thu Jul 11 23:47:34 CEST 2019 +ndk.dir=C\:\\Users\\baggyg\\AppData\\Local\\Android\\Sdk\\ndk-bundle +sdk.dir=C\:\\Users\\baggyg\\AppData\\Local\\Android\\Sdk