5.4.0 Raw Restriction Setting, Apply Offsets (#577)
* Crash Recovery Defaults to Off, add option to use space drag w/ uncalibrated playspace * increment version 5.3.3 * Feat/apply offsets binding (#576) * add apply offsets steamvr input * add new binding to Readme Co-authored-by: TheMrGong <gongora656@gmail.com> * increment version 5.4.0 * added LH Console Interface class, WIP TX/RX list via lh console * switch over to property based dongle information * add ovr system wrapper * add use of parameter to avoid warning as error * openXR fix, and Change Display State of Chaperone Disabled * update text * format files * clang 9.0.0 format * add documentation update * remove windows header include * remove filesystem header * fix uncal motion switching issue Co-authored-by: TheMrGong <gongora656@gmail.com>
This commit is contained in:
@@ -602,6 +602,7 @@ void OverlayController::processMotionBindings()
|
||||
m_actions.gravityReverse() );
|
||||
m_moveCenterTabController.heightToggleAction( m_actions.heightToggle() );
|
||||
m_moveCenterTabController.resetOffsets( m_actions.resetOffsets() );
|
||||
m_moveCenterTabController.applyOffsets( m_actions.applyOffsets() );
|
||||
m_moveCenterTabController.snapTurnLeft( m_actions.snapTurnLeft() );
|
||||
m_moveCenterTabController.snapTurnRight( m_actions.snapTurnRight() );
|
||||
m_moveCenterTabController.smoothTurnLeft( m_actions.smoothTurnLeft() );
|
||||
@@ -818,16 +819,32 @@ void OverlayController::setExclusiveInputEnabled( bool value, bool notify )
|
||||
}
|
||||
}
|
||||
|
||||
void OverlayController::setOpenXRFixEnabled( bool value, bool notify )
|
||||
{
|
||||
settings::setSetting( settings::BoolSetting::APPLICATION_openXRWorkAround,
|
||||
value );
|
||||
if ( notify )
|
||||
{
|
||||
emit openXRFixEnabledChanged( value );
|
||||
}
|
||||
}
|
||||
|
||||
bool OverlayController::openXRFixEnabled() const
|
||||
{
|
||||
return settings::getSetting(
|
||||
settings::BoolSetting::APPLICATION_openXRWorkAround );
|
||||
}
|
||||
|
||||
bool OverlayController::crashRecoveryDisabled() const
|
||||
{
|
||||
return settings::getSetting(
|
||||
settings::BoolSetting::APPLICATION_crashRecoveryDisabled );
|
||||
settings::BoolSetting::APPLICATION_crashRecoveryDisabled2 );
|
||||
}
|
||||
|
||||
void OverlayController::setCrashRecoveryDisabled( bool value, bool notify )
|
||||
{
|
||||
settings::setSetting(
|
||||
settings::BoolSetting::APPLICATION_crashRecoveryDisabled, value );
|
||||
settings::BoolSetting::APPLICATION_crashRecoveryDisabled2, value );
|
||||
if ( notify )
|
||||
{
|
||||
emit crashRecoveryDisabledChanged( value );
|
||||
@@ -1240,6 +1257,18 @@ void OverlayController::mainEventLoop()
|
||||
= std::sqrt( vel[0] * vel[0] + vel[1] * vel[1] + vel[2] * vel[2] );
|
||||
}
|
||||
auto universe = vr::VRCompositor()->GetTrackingSpace();
|
||||
// This Fix is hopefully temporary as OpenVR doesn't appear to have a way to
|
||||
// tell if an application is OpenXR outside of VR_init which we don't have
|
||||
// control over
|
||||
if ( vr::VRApplications()->GetApplicationProcessId(
|
||||
"openvr.tool.steamvr_room_setup" )
|
||||
== 0
|
||||
&& openXRFixEnabled() )
|
||||
{
|
||||
// OpenXR applications will appear as RawAndUncalibrated.
|
||||
// Unless Room Setup is running, treat this case as Standing.
|
||||
universe = vr::TrackingUniverseStanding;
|
||||
}
|
||||
|
||||
m_moveCenterTabController.eventLoopTick( universe, devicePoses );
|
||||
m_utilitiesTabController.eventLoopTick();
|
||||
|
||||
Reference in New Issue
Block a user