Fix switch scope;
@@ -157,7 +157,7 @@ void lovrHeadsetPoll() {
}
case EVREventType_VREvent_InputFocusCaptured:
- case EVREventType_VREvent_InputFocusReleased:
+ case EVREventType_VREvent_InputFocusReleased: {
int isFocused = vrEvent.eventType == EVREventType_VREvent_InputFocusReleased;
EventData data = { .focus = { isFocused } };
Event event = { .type = EVENT_FOCUS, .data = data };
@@ -166,6 +166,7 @@ void lovrHeadsetPoll() {
}
}
}
+}
int lovrHeadsetIsPresent() {
return state.isInitialized && state.system->IsTrackedDeviceConnected(state.headsetIndex);
