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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user