jkxr/Projects/Android/jni/OpenJK/JKXR/VrCommon.h

28 lines
814 B
C
Raw Normal View History

#if !defined(vrcommon_h)
#define vrcommon_h
#include "qcommon/q_shared.h"
#include "qcommon/qcommon.h"
2022-09-19 21:46:47 +00:00
#include "VrClientInfo.h"
2023-07-27 22:08:48 +00:00
#ifdef _WIN32
#include "windows/TBXR_Common.h"
#else
#include "android/TBXR_Common.h"
#endif
extern long long global_time;
extern int ducked;
extern vr_client_info_t vr;
float length(float x, float y);
float nonLinearFilter(float in);
2022-09-19 21:46:47 +00:00
bool between(float min, float val, float max);
void rotateAboutOrigin(float v1, float v2, float rotation, vec2_t out);
void QuatToYawPitchRoll(XrQuaternionf q, vec3_t rotation, vec3_t out);
void handleTrackedControllerButton(ovrInputStateTrackedRemote * trackedRemoteState, ovrInputStateTrackedRemote * prevTrackedRemoteState, uint32_t button, int key);
void interactWithTouchScreen(float menuYaw, vec3_t controllerAngles);
#endif //vrcommon_h