mirror of https://github.com/bjornbytes/lovr.git
Fix switch scope;
This commit is contained in:
parent
49a0ba4d1c
commit
f3dfbe518a
|
@ -157,12 +157,13 @@ 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 };
|
||||
lovrEventPush(event);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue