mirror of
https://github.com/DrBeef/QuakeQuest.git
synced 2024-11-24 04:51:23 +00:00
Quit menu option fix
This commit is contained in:
parent
3dcc4573a7
commit
865cbc11cc
5 changed files with 15 additions and 5 deletions
|
@ -17,7 +17,8 @@ LOCAL_LDLIBS := -llog -landroid -lGLESv3 -lEGL -lOpenSLES # include default l
|
|||
LOCAL_C_INCLUDES := ../QuakeQuestSrc/ \
|
||||
../darkplaces/ \
|
||||
$(SUPPORT_LIBS)/liboggvorbis/include \
|
||||
$(TOP_DIR)/../../../../../3rdParty/khronos/openxr/OpenXR-SDK/include
|
||||
$(TOP_DIR)/../../../../../3rdParty/khronos/openxr/OpenXR-SDK/include \
|
||||
$(TOP_DIR)/../../../../../OpenXR/Include
|
||||
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := openxr_loader libvorbis libogg libvorbis-jni
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#include "VrCommon.h"
|
||||
|
||||
#ifdef META_QUEST
|
||||
|
||||
#include "VrCommon.h"
|
||||
|
||||
extern ovrApp gAppState;
|
||||
|
||||
XrSpace CreateActionSpace(XrAction poseAction, XrPath subactionPath) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "VrCommon.h"
|
||||
|
||||
#ifdef PICO_XR
|
||||
|
||||
#include "VrCommon.h"
|
||||
|
||||
extern ovrApp gAppState;
|
||||
|
||||
XrResult CheckXrResult(XrResult res, const char* originator) {
|
||||
|
|
|
@ -305,7 +305,14 @@ void * AppThreadFunction(void * parm ) {
|
|||
|
||||
TBXR_submitFrame();
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
TBXR_LeaveVR();
|
||||
//Ask Java to shut down
|
||||
VR_Shutdown();
|
||||
|
||||
exit(0); // in case Java doesn't do the job
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -320,6 +320,7 @@ void TBXR_InitialiseOpenXR();
|
|||
void TBXR_WaitForSessionActive();
|
||||
void TBXR_InitRenderer();
|
||||
void TBXR_EnterVR();
|
||||
void TBXR_LeaveVR( );
|
||||
void TBXR_GetScreenRes(int *width, int *height);
|
||||
void TBXR_InitActions( void );
|
||||
void TBXR_Vibrate(int duration, int channel, float intensity );
|
||||
|
|
Loading…
Reference in a new issue