2022-09-18 15:37:21 +00:00
|
|
|
|
|
|
|
#if !defined(vrinput_h)
|
|
|
|
#define vrinput_h
|
|
|
|
|
|
|
|
#include "VrCommon.h"
|
|
|
|
|
2022-11-09 21:28:18 +00:00
|
|
|
#define STABILISATION_DISTANCE 0.28
|
2022-09-18 15:37:21 +00:00
|
|
|
|
2022-12-04 11:46:32 +00:00
|
|
|
|
2022-09-20 22:15:52 +00:00
|
|
|
extern ovrInputStateTrackedRemote leftTrackedRemoteState_old;
|
|
|
|
extern ovrInputStateTrackedRemote leftTrackedRemoteState_new;
|
2022-12-04 11:46:32 +00:00
|
|
|
extern ovrTrackedController leftRemoteTracking_new;
|
2022-09-20 22:15:52 +00:00
|
|
|
extern ovrInputStateTrackedRemote rightTrackedRemoteState_old;
|
|
|
|
extern ovrInputStateTrackedRemote rightTrackedRemoteState_new;
|
2022-12-04 11:46:32 +00:00
|
|
|
extern ovrTrackedController rightRemoteTracking_new;
|
2022-09-20 22:15:52 +00:00
|
|
|
|
|
|
|
extern float remote_movementSideways;
|
|
|
|
extern float remote_movementForward;
|
|
|
|
extern float remote_movementUp;
|
|
|
|
extern float positional_movementSideways;
|
|
|
|
extern float positional_movementForward;
|
2022-09-18 15:37:21 +00:00
|
|
|
|
|
|
|
void sendButtonAction(const char* action, long buttonDown);
|
|
|
|
void sendButtonActionSimple(const char* action);
|
|
|
|
|
2022-12-04 11:46:32 +00:00
|
|
|
void HandleInput_Default( ovrInputStateTrackedRemote *pDominantTrackedRemoteNew, ovrInputStateTrackedRemote *pDominantTrackedRemoteOld, ovrTrackedController* pDominantTracking,
|
|
|
|
ovrInputStateTrackedRemote *pOffTrackedRemoteNew, ovrInputStateTrackedRemote *pOffTrackedRemoteOld, ovrTrackedController* pOffTracking,
|
2022-09-18 15:37:21 +00:00
|
|
|
int domButton1, int domButton2, int offButton1, int offButton2 );
|
|
|
|
|
2022-12-04 11:46:32 +00:00
|
|
|
void HandleInput_WeaponAlign( ovrInputStateTrackedRemote *pDominantTrackedRemoteNew, ovrInputStateTrackedRemote *pDominantTrackedRemoteOld, ovrTrackedController* pDominantTracking,
|
|
|
|
ovrInputStateTrackedRemote *pOffTrackedRemoteNew, ovrInputStateTrackedRemote *pOffTrackedRemoteOld, ovrTrackedController* pOffTracking,
|
2022-09-18 15:37:21 +00:00
|
|
|
int domButton1, int domButton2, int offButton1, int offButton2 );
|
|
|
|
|
|
|
|
|
|
|
|
void CalculateShoulderPosition();
|
|
|
|
|
|
|
|
#endif //vrinput_h
|