diff --git a/src/api/headset.c b/src/api/headset.c index 0c37c2dc..51b0e5d9 100644 --- a/src/api/headset.c +++ b/src/api/headset.c @@ -64,6 +64,7 @@ int l_lovrHeadsetInit(lua_State* L) { map_set(&HeadsetTypes, "unknown", HEADSET_UNKNOWN); map_set(&HeadsetTypes, "vive", HEADSET_VIVE); map_set(&HeadsetTypes, "rift", HEADSET_RIFT); + map_set(&HeadsetTypes, "windowsmr", HEADSET_WINDOWS_MR); map_init(&HeadsetDrivers); map_set(&HeadsetDrivers, "fake", DRIVER_FAKE); diff --git a/src/headset/headset.h b/src/headset/headset.h index 6fdafd9b..16e9a788 100644 --- a/src/headset/headset.h +++ b/src/headset/headset.h @@ -25,6 +25,7 @@ typedef enum { HEADSET_UNKNOWN, HEADSET_VIVE, HEADSET_RIFT, + HEADSET_WINDOWS_MR, HEADSET_FAKE } HeadsetType; diff --git a/src/headset/openvr.c b/src/headset/openvr.c index a360120c..11cc9a78 100644 --- a/src/headset/openvr.c +++ b/src/headset/openvr.c @@ -205,6 +205,8 @@ static void openvrInit() { state.type = HEADSET_VIVE; } else if (!strncmp(buffer, "Oculus", 128)) { state.type = HEADSET_RIFT; + } else if (!strncmp(buffer, "WindowsMR", 128)) { + state.type = HEADSET_WINDOWS_MR; } else { state.type = HEADSET_UNKNOWN; }