Recognise Controllers - add missing declarations to android build

This commit is contained in:
Petr Bartos 2023-12-13 20:06:16 +01:00
parent a56dad8ca3
commit bc6b23786e

View file

@ -246,8 +246,8 @@ typedef struct
GLboolean SessionActive; GLboolean SessionActive;
XrPosef xfStageFromHead; XrPosef xfStageFromHead;
XrView* Views; XrView* Views;
int controllersPresent = -1;
float currentDisplayRefreshRate; float currentDisplayRefreshRate;
float* SupportedDisplayRefreshRates; float* SupportedDisplayRefreshRates;
uint32_t RequestedDisplayRefreshRateIndex; uint32_t RequestedDisplayRefreshRateIndex;
@ -337,4 +337,10 @@ void TBXR_prepareEyeBuffer(int eye );
void TBXR_finishEyeBuffer(int eye ); void TBXR_finishEyeBuffer(int eye );
void TBXR_submitFrame(); void TBXR_submitFrame();
#define VIVE_CONTROLLERS 10
#define INDEX_CONTROLLERS 11
#define PICO_CONTROLLERS 12
#define TOUCH_CONTROLLERS 13
//Anything else will emulate touch
#endif //vrcommon_h #endif //vrcommon_h