OpenVR: Emit quit event when exiting from SteamVR dashboard;

This commit is contained in:
bjorn 2020-06-07 00:42:44 -06:00
parent 27b2c0abad
commit f58c7075b1
1 changed files with 4 additions and 0 deletions

View File

@ -715,6 +715,10 @@ static void openvr_update(float dt) {
break;
}
case EVREventType_VREvent_Quit:
lovrEventPush((Event) { .type = EVENT_QUIT, .data.quit = { .exitCode = 0 } });
break;
default: break;
}
}