mirror of https://github.com/bjornbytes/lovr.git
Fix switch scope;
This commit is contained in:
parent
49a0ba4d1c
commit
f3dfbe518a
|
@ -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 };
|
||||
|
@ -165,6 +165,7 @@ void lovrHeadsetPoll() {
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int lovrHeadsetIsPresent() {
|
||||
|
|
Loading…
Reference in New Issue