jkxr/Projects/Android/jni/JKXR/VrCommon.h
Simon d00d0a6a26 Do-not-wrap-cursor-Do-not-switch-menu-controls
Thanks @MuadDib!

Co-Authored-By: petr666 <5103207+petr666@users.noreply.github.com>
2023-03-21 20:10:40 +00:00

24 lines
No EOL
752 B
C

#if !defined(vrcommon_h)
#define vrcommon_h
#include "../qcommon/q_shared.h"
#include "../qcommon/qcommon.h"
#include "VrClientInfo.h"
#include "TBXR_Common.h"
extern long long global_time;
extern int ducked;
extern vr_client_info_t vr;
float length(float x, float y);
float nonLinearFilter(float in);
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