mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-04 13:33:34 +00:00
openvr: rm state.rift;
Yay actions?
This commit is contained in:
parent
8e7a4323d0
commit
69260cfbb3
|
@ -85,7 +85,6 @@ static struct {
|
||||||
RenderModel_TextureMap_t* deviceTextures[16];
|
RenderModel_TextureMap_t* deviceTextures[16];
|
||||||
Canvas* canvas;
|
Canvas* canvas;
|
||||||
vec_float_t boundsGeometry;
|
vec_float_t boundsGeometry;
|
||||||
bool rift;
|
|
||||||
float clipNear;
|
float clipNear;
|
||||||
float clipFar;
|
float clipFar;
|
||||||
float offset;
|
float offset;
|
||||||
|
@ -208,8 +207,6 @@ static bool openvr_init(float offset, int msaa) {
|
||||||
state.input->GetActionHandle("/actions/lovr/out/leftHandBZZ", &state.hapticActions[0]);
|
state.input->GetActionHandle("/actions/lovr/out/leftHandBZZ", &state.hapticActions[0]);
|
||||||
state.input->GetActionHandle("/actions/lovr/out/rightHandBZZ", &state.hapticActions[1]);
|
state.input->GetActionHandle("/actions/lovr/out/rightHandBZZ", &state.hapticActions[1]);
|
||||||
|
|
||||||
openvr_getName(buffer, sizeof(buffer));
|
|
||||||
state.rift = !strncmp(buffer, "Oculus", sizeof(buffer));
|
|
||||||
state.clipNear = 0.1f;
|
state.clipNear = 0.1f;
|
||||||
state.clipFar = 30.f;
|
state.clipFar = 30.f;
|
||||||
state.offset = state.compositor->GetTrackingSpace() == ETrackingUniverseOrigin_TrackingUniverseStanding ? 0. : offset;
|
state.offset = state.compositor->GetTrackingSpace() == ETrackingUniverseOrigin_TrackingUniverseStanding ? 0. : offset;
|
||||||
|
|
Loading…
Reference in a new issue