2022-09-18 15:37:21 +00:00
|
|
|
#if !defined(vrcommon_h)
|
|
|
|
#define vrcommon_h
|
|
|
|
|
2022-09-19 21:46:47 +00:00
|
|
|
#include "../qcommon/q_shared.h"
|
|
|
|
#include "../qcommon/qcommon.h"
|
|
|
|
|
2022-09-18 15:37:21 +00:00
|
|
|
#include "VrClientInfo.h"
|
|
|
|
|
2022-12-19 21:23:28 +00:00
|
|
|
#include "TBXR_Common.h"
|
2022-12-04 11:46:32 +00:00
|
|
|
|
|
|
|
|
2022-09-20 22:15:52 +00:00
|
|
|
extern long long global_time;
|
|
|
|
extern int ducked;
|
|
|
|
extern vr_client_info_t vr;
|
2022-09-18 15:37:21 +00:00
|
|
|
|
|
|
|
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);
|
2022-09-18 15:37:21 +00:00
|
|
|
void rotateAboutOrigin(float v1, float v2, float rotation, vec2_t out);
|
2022-12-04 11:46:32 +00:00
|
|
|
void QuatToYawPitchRoll(XrQuaternionf q, vec3_t rotation, vec3_t out);
|
2022-09-18 15:37:21 +00:00
|
|
|
void handleTrackedControllerButton(ovrInputStateTrackedRemote * trackedRemoteState, ovrInputStateTrackedRemote * prevTrackedRemoteState, uint32_t button, int key);
|
2022-09-19 21:46:47 +00:00
|
|
|
void interactWithTouchScreen(bool reset, ovrInputStateTrackedRemote *newState, ovrInputStateTrackedRemote *oldState);
|
2022-09-18 15:37:21 +00:00
|
|
|
|
|
|
|
#endif //vrcommon_h
|