quakequest/Projects/Android/jni/QuakeQuestSrc/VrCommon.h
Simon a5c1b63574 Multiple improvements
- Single movement speed cvar
- Weapon Haptics on weapon controller
- Proper compositor layer for menu
- Weapon hand thumbstick up and down to switch weapons
- Removed weapon angle adjustment as default is fine
2021-02-03 22:13:37 +00:00

38 lines
No EOL
812 B
C

#if !defined(vrcommon_h)
#define vrcommon_h
//#include <VrApi_Ext.h>
#include <VrApi_Input.h>
#include <android/log.h>
#include "../darkplaces/mathlib.h"
#define LOG_TAG "QuakeQuest"
#ifndef NDEBUG
#define DEBUG 1
#endif
#define ALOGE(...) __android_log_print( ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__ )
#if DEBUG
#define ALOGV(...) __android_log_print( ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__ )
#else
#define ALOGV(...)
#endif
float playerHeight;
float playerYaw;
float radians(float deg);
float degrees(float rad);
qboolean isMultiplayer();
double GetTimeInMilliSeconds();
float length(float x, float y);
float nonLinearFilter(float in);
bool between(float min, float val, float max);
void QuatToYawPitchRoll(ovrQuatf q, float pitchAdjust, vec3_t out);
qboolean useScreenLayer();
#endif //vrcommon_h