Update OVR to 1.10.30 (#379)

* updated to ovr 1.10.30

* fixed updated showoverlaykeyboard call

* fixed keyboard location
This commit is contained in:
ykeara
2020-03-20 02:59:08 -05:00
committed by GitHub
parent b66fca6f28
commit 25f3a1040d
18 changed files with 1261 additions and 414 deletions
+31 -1
View File
@@ -1403,11 +1403,41 @@ void OverlayController::showKeyboard( QString existingText,
m_ulOverlayHandle,
vr::k_EGamepadTextInputModeNormal,
vr::k_EGamepadTextInputLineModeSingleLine,
0,
"Advanced Settings Overlay",
1024,
existingText.toStdString().c_str(),
false,
userValue );
auto m_trackingUniverse = vr::VRCompositor()->GetTrackingSpace();
vr::EVROverlayError overlayerror;
// System Overlay Key
const auto systemOverlayKey = std::string( "system.systemui" );
vr::VROverlayHandle_t systemOverlayHandle;
overlayerror = vr::VROverlay()->FindOverlay( systemOverlayKey.c_str(),
&systemOverlayHandle );
if ( overlayerror != vr::VROverlayError_None )
{
return;
}
vr::HmdMatrix34_t overlayPos;
vr::VROverlay()->GetOverlayTransformAbsolute(
systemOverlayHandle, &m_trackingUniverse, &overlayPos );
vr::HmdMatrix34_t keyboardLocation = { { { overlayPos.m[0][0],
overlayPos.m[0][1],
overlayPos.m[0][2],
overlayPos.m[0][3] },
{ overlayPos.m[1][0],
overlayPos.m[1][1],
overlayPos.m[1][2],
overlayPos.m[1][3] - 1.0f },
{ overlayPos.m[2][0],
overlayPos.m[2][1],
overlayPos.m[2][2],
overlayPos.m[2][3] } } };
vr::VROverlay()->SetKeyboardTransformAbsolute( m_trackingUniverse,
&keyboardLocation );
}
void OverlayController::playActivationSound()