2020-06-10 18:20:11 +00:00
|
|
|
|
|
|
|
#if !defined(vrinput_h)
|
|
|
|
#define vrinput_h
|
|
|
|
|
|
|
|
#include "VrCommon.h"
|
|
|
|
|
|
|
|
//New control scheme definitions to be defined L1VR_SurfaceView.c enumeration
|
|
|
|
enum control_scheme;
|
|
|
|
|
2020-07-12 15:04:26 +00:00
|
|
|
#define SCOPE_ENGAGE_DISTANCE 0.3
|
2020-07-12 22:26:56 +00:00
|
|
|
#define VELOCITY_TRIGGER 1.8
|
2020-07-09 22:53:06 +00:00
|
|
|
|
2020-06-10 18:20:11 +00:00
|
|
|
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 );
|
|
|
|
|
2020-07-13 22:58:12 +00:00
|
|
|
void HandleInput_WeaponAlign( ovrInputStateTrackedRemote *pDominantTrackedRemoteNew, ovrInputStateTrackedRemote *pDominantTrackedRemoteOld, ovrTracking* pDominantTracking,
|
|
|
|
ovrInputStateTrackedRemote *pOffTrackedRemoteNew, ovrInputStateTrackedRemote *pOffTrackedRemoteOld, ovrTracking* pOffTracking,
|
|
|
|
int domButton1, int domButton2, int offButton1, int offButton2 );
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-10 20:58:40 +00:00
|
|
|
void updateScopeAngles();
|
2020-06-10 18:20:11 +00:00
|
|
|
|
|
|
|
#endif //vrinput_h
|