浏览代码

Added device classes for controllers

TheOnlyJoey 7 年之前
父节点
当前提交
93d96523c6
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/drv_nolo/nolo.c

+ 4 - 0
src/drv_nolo/nolo.c

@@ -312,6 +312,8 @@ static void get_device_list(ohmd_driver* driver, ohmd_device_list* list)
 				OHMD_DEVICE_FLAGS_ROTATIONAL_TRACKING |
 				OHMD_DEVICE_FLAGS_RIGHT_CONTROLLER;
 
+			desc->device_class = OHMD_DEVICE_CLASS_CONTROLLER;
+
 			desc->driver_ptr = driver;
 			desc->id = id++;
 
@@ -329,6 +331,8 @@ static void get_device_list(ohmd_driver* driver, ohmd_device_list* list)
 				OHMD_DEVICE_FLAGS_ROTATIONAL_TRACKING |
 				OHMD_DEVICE_FLAGS_LEFT_CONTROLLER;
 
+			desc->device_class = OHMD_DEVICE_CLASS_CONTROLLER;
+
 			desc->driver_ptr = driver;
 			desc->id = id++;
 		}