[Bf-blender-cvs] [634067f442] HMD_viewport: OpenHMD update, disables OVRService upon starting the device, only when run with administrator. Requires custom build of hidapi for now (github TheOnlyJoey/hidapi)
Joey Ferwerda
noreply at git.blender.org
Fri Mar 24 02:08:13 CET 2017
Commit: 634067f44221916b1f4bcc156698bf6de4b7d578
Author: Joey Ferwerda
Date: Fri Mar 24 02:07:07 2017 +0100
Branches: HMD_viewport
https://developer.blender.org/rB634067f44221916b1f4bcc156698bf6de4b7d578
OpenHMD update, disables OVRService upon starting the device, only when run with administrator.
Requires custom build of hidapi for now (github TheOnlyJoey/hidapi)
===================================================================
M extern/openhmd/src/drv_oculus_rift/rift.c
===================================================================
diff --git a/extern/openhmd/src/drv_oculus_rift/rift.c b/extern/openhmd/src/drv_oculus_rift/rift.c
index 2011704105..caf367eb24 100644
--- a/extern/openhmd/src/drv_oculus_rift/rift.c
+++ b/extern/openhmd/src/drv_oculus_rift/rift.c
@@ -235,6 +235,8 @@ static ohmd_device* open_device(ohmd_driver* driver, ohmd_device_desc* desc)
priv->base.ctx = driver->ctx;
+ ohmd_toggle_ovr_service(0); //disable OVRService if running
+
// Open the HID device
priv->handle = hid_open_path(desc->path);
@@ -445,8 +447,6 @@ ohmd_driver* ohmd_create_oculus_rift_drv(ohmd_context* ctx)
if(drv == NULL)
return NULL;
- ohmd_toggle_ovr_service(0); //disable OVRService if running
-
drv->get_device_list = get_device_list;
drv->open_device = open_device;
drv->destroy = destroy_driver;
More information about the Bf-blender-cvs
mailing list