Fixed bug with controllers not working when Leap is present.
@@ -320,7 +320,7 @@ bool openxr_init(const char *app_name) {
});
#else
#ifndef SK_NO_LEAP_MOTION
- xr_hand_support = input_leap_init();
+ input_leap_init();
#endif
#endif
@@ -329,9 +329,9 @@ bool openxr_init(const char *app_name) {
void uwp_update_hands(XrTime prediction, bool update_mesh) {
+#if WINDOWS_UWP
if (!xr_hand_support)
return;
-#if WINDOWS_UWP
// Convert the time we're given into a format that Windows likes
LARGE_INTEGER time;
xrConvertTimeToWin32PerformanceCounterKHR(xr_instance, prediction, &time);
@@ -402,6 +402,7 @@ void uwp_update_hands(XrTime prediction, bool update_mesh) {
}
#else
#ifndef SK_NO_LEAP_MOTION
+ xr_hand_support = leap_has_device;
if (xr_hand_support && leap_has_device) {
input_leap_update();
