mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 06:41:58 +00:00
OpenXR set yaw to zero on a fresh start
This commit is contained in:
parent
7e092d57a4
commit
a56b9ad288
1 changed files with 6 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
#include "vr_base.h"
|
||||
#include "../qcommon/q_shared.h"
|
||||
#include "../qcommon/qcommon.h"
|
||||
#include "../client/client.h"
|
||||
#include "vr_base.h"
|
||||
#include "vr_clientinfo.h"
|
||||
|
||||
//#if __ANDROID__
|
||||
|
||||
|
@ -10,6 +11,7 @@
|
|||
|
||||
static engine_t vr_engine;
|
||||
qboolean vr_initialized = qfalse;
|
||||
extern vr_clientinfo_t vr;
|
||||
|
||||
const char* const requiredExtensionNames[] = {
|
||||
XR_KHR_OPENGL_ES_ENABLE_EXTENSION_NAME,
|
||||
|
@ -256,6 +258,9 @@ void VR_InitCvars( void )
|
|||
Cvar_Get ("vr_button_map_SECONDARYGRIP", "+weapon_stabilise", CVAR_ARCHIVE); // Weapon stabilisation
|
||||
Cvar_Get ("vr_button_map_SECONDARYGRIP_ALT", "", CVAR_ARCHIVE); // unmapped
|
||||
Cvar_Get ("vr_button_map_PRIMARYGRIP_ALT", "", CVAR_ARCHIVE); // unmapped
|
||||
|
||||
vr.menuYaw = 0;
|
||||
vr.recenterYaw = 0;
|
||||
}
|
||||
|
||||
void VR_Destroy( engine_t* engine )
|
||||
|
|
Loading…
Reference in a new issue