mirror of
https://github.com/DrBeef/RTCWQuest.git
synced 2025-03-01 06:41:08 +00:00
- Start of Baggyg's changes to no-hand vr weapons - now have a scope switchable FG42 - FIx bug where door pushes you and makes yaw go out of sync - Fix bug where returning knife to backpack causes weapon to fire repeatedly
48 lines
No EOL
1.8 KiB
C
48 lines
No EOL
1.8 KiB
C
|
|
#if !defined(vrinput_h)
|
|
#define vrinput_h
|
|
|
|
#include "VrCommon.h"
|
|
|
|
//New control scheme definitions to be defined L1VR_SurfaceView.c enumeration
|
|
enum control_scheme;
|
|
|
|
#define SCOPE_ENGAGE_DISTANCE 0.25
|
|
#define BINOCULAR_ENGAGE_DISTANCE 0.25
|
|
#define VELOCITY_TRIGGER 1.6
|
|
|
|
ovrInputStateTrackedRemote leftTrackedRemoteState_old;
|
|
ovrInputStateTrackedRemote leftTrackedRemoteState_new;
|
|
ovrTracking leftRemoteTracking_new;
|
|
|
|
ovrInputStateTrackedRemote rightTrackedRemoteState_old;
|
|
ovrInputStateTrackedRemote rightTrackedRemoteState_new;
|
|
ovrTracking rightRemoteTracking_new;
|
|
|
|
ovrDeviceID controllerIDs[2];
|
|
|
|
float remote_movementSideways;
|
|
float remote_movementForward;
|
|
float remote_movementUp;
|
|
float positional_movementSideways;
|
|
float positional_movementForward;
|
|
float snapTurn;
|
|
|
|
void sendButtonAction(const char* action, long buttonDown);
|
|
void sendButtonActionSimple(const char* action);
|
|
|
|
void acquireTrackedRemotesData(const ovrMobile *Ovr, double displayTime);
|
|
|
|
void HandleInput_Default( ovrInputStateTrackedRemote *pDominantTrackedRemoteNew, ovrInputStateTrackedRemote *pDominantTrackedRemoteOld, ovrTracking* pDominantTracking,
|
|
ovrInputStateTrackedRemote *pOffTrackedRemoteNew, ovrInputStateTrackedRemote *pOffTrackedRemoteOld, ovrTracking* pOffTracking,
|
|
int domButton1, int domButton2, int offButton1, int offButton2 );
|
|
|
|
void HandleInput_WeaponAlign( ovrInputStateTrackedRemote *pDominantTrackedRemoteNew, ovrInputStateTrackedRemote *pDominantTrackedRemoteOld, ovrTracking* pDominantTracking,
|
|
ovrInputStateTrackedRemote *pOffTrackedRemoteNew, ovrInputStateTrackedRemote *pOffTrackedRemoteOld, ovrTracking* pOffTracking,
|
|
int domButton1, int domButton2, int offButton1, int offButton2 );
|
|
|
|
|
|
|
|
void updateScopeAngles();
|
|
|
|
#endif //vrinput_h
|