2020-02-22 16:10:48 +00:00
|
|
|
|
|
|
|
#if !defined(vrinput_h)
|
|
|
|
#define vrinput_h
|
|
|
|
|
|
|
|
#include "VrCommon.h"
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
2020-06-07 21:32:20 +00:00
|
|
|
float cinemamodeYaw;
|
|
|
|
float cinemamodePitch;
|
2020-06-06 13:41:41 +00:00
|
|
|
|
2020-02-22 16:10:48 +00:00
|
|
|
void acquireTrackedRemotesData(const ovrMobile *Ovr, double displayTime);
|
|
|
|
|
2021-02-20 23:37:24 +00:00
|
|
|
void HandleInput_Default( int control_scheme, ovrInputStateTrackedRemote *pDominantTrackedRemoteNew, ovrInputStateTrackedRemote *pDominantTrackedRemoteOld, ovrTracking* pDominantTracking,
|
2020-02-22 16:10:48 +00:00
|
|
|
ovrInputStateTrackedRemote *pOffTrackedRemoteNew, ovrInputStateTrackedRemote *pOffTrackedRemoteOld, ovrTracking* pOffTracking,
|
|
|
|
int domButton1, int domButton2, int offButton1, int offButton2 );
|
|
|
|
|
|
|
|
|
|
|
|
#endif //vrinput_h
|