From bc6b23786eb562ed6e9a114814b0b91079294a16 Mon Sep 17 00:00:00 2001 From: Petr Bartos Date: Wed, 13 Dec 2023 20:06:16 +0100 Subject: [PATCH] Recognise Controllers - add missing declarations to android build --- Projects/Android/jni/OpenJK/JKXR/android/TBXR_Common.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Projects/Android/jni/OpenJK/JKXR/android/TBXR_Common.h b/Projects/Android/jni/OpenJK/JKXR/android/TBXR_Common.h index 69bd53f..0b0b0d9 100644 --- a/Projects/Android/jni/OpenJK/JKXR/android/TBXR_Common.h +++ b/Projects/Android/jni/OpenJK/JKXR/android/TBXR_Common.h @@ -246,8 +246,8 @@ typedef struct GLboolean SessionActive; XrPosef xfStageFromHead; XrView* Views; - - + + int controllersPresent = -1; float currentDisplayRefreshRate; float* SupportedDisplayRefreshRates; uint32_t RequestedDisplayRefreshRateIndex; @@ -337,4 +337,10 @@ void TBXR_prepareEyeBuffer(int eye ); void TBXR_finishEyeBuffer(int eye ); 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 \ No newline at end of file