2019-09-25 21:46:42 +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;
|
|
|
|
|
|
|
|
ovrInputStateTrackedRemote leftTrackedRemoteState_old;
|
|
|
|
ovrInputStateTrackedRemote leftTrackedRemoteState_new;
|
|
|
|
ovrTracking leftRemoteTracking_new;
|
|
|
|
|
|
|
|
ovrInputStateTrackedRemote rightTrackedRemoteState_old;
|
|
|
|
ovrInputStateTrackedRemote rightTrackedRemoteState_new;
|
|
|
|
ovrTracking rightRemoteTracking_new;
|
|
|
|
|
2019-11-16 15:21:43 +00:00
|
|
|
ovrDeviceID controllerIDs[2];
|
|
|
|
|
2019-09-25 21:46:42 +00:00
|
|
|
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);
|
|
|
|
|
2019-11-16 13:17:43 +00:00
|
|
|
void HandleInput_Default( ovrInputStateTrackedRemote *pDominantTrackedRemoteNew, ovrInputStateTrackedRemote *pDominantTrackedRemoteOld, ovrTracking* pDominantTracking,
|
|
|
|
ovrInputStateTrackedRemote *pOffTrackedRemoteNew, ovrInputStateTrackedRemote *pOffTrackedRemoteOld, ovrTracking* pOffTracking,
|
|
|
|
int domButton1, int domButton2, int offButton1, int offButton2 );
|
2019-09-25 21:46:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif //vrinput_h
|