Browse Source

Merge pull request #172 from ChristophHaag/fixdeviceclass

examples/simple: fix getting device class
TheOnlyJoey 6 years ago
parent
commit
d226929b80
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/simple/simple.c

+ 1 - 1
examples/simple/simple.c

@@ -124,7 +124,7 @@ int main(int argc, char** argv)
 	printf("\n\n");
 	printf("\n\n");
 
 
 	int device_class = 0;
 	int device_class = 0;
-	ohmd_device_geti(hmd, OHMD_DEVICE_CLASS, &device_class);
+	ohmd_list_geti(ctx, device_idx, OHMD_DEVICE_CLASS, &device_class);
 	// Ask for n rotation quaternions and position vectors
 	// Ask for n rotation quaternions and position vectors
 	for(int i = 0; i < 10000; i++){
 	for(int i = 0; i < 10000; i++){
 		ohmd_ctx_update(ctx);
 		ohmd_ctx_update(ctx);