From 920ef8967d328e80d9c5020a798f0f7afad97903 Mon Sep 17 00:00:00 2001 From: wheaney <42350981+wheaney@users.noreply.github.com> Date: Fri, 6 Sep 2024 10:23:00 -0700 Subject: [PATCH] Update Rokid integration to prevent magnetometer usage --- CMakeLists.txt | 2 +- src/devices/rokid.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index feca43a..04da690 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.16) -project(xrDriver VERSION 0.11.1.3 LANGUAGES C) +project(xrDriver VERSION 0.11.1.4 LANGUAGES C) configure_file(include/version.h.in version.h) include_directories(${PROJECT_BINARY_DIR}) diff --git a/src/devices/rokid.c b/src/devices/rokid.c index 4cc218c..225e345 100644 --- a/src/devices/rokid.c +++ b/src/devices/rokid.c @@ -118,7 +118,7 @@ static bool device_connect(device_properties_type* device) { GlassControlOpen(control_instance, device->hid_vendor_id, device->hid_product_id); if (soft_connected) { - event_handle = GlassRegisterEventWithSize(event_instance, ROTATION_EVENT, 50); + event_handle = GlassRegisterEventWithSize(event_instance, GAME_ROTATION_EVENT, 50); if (!event_handle) { log_error("Failed to register event handle\n"); soft_connected = false;