New chaperone adjust system and height toggle action (and Ykeara's PTT fix) (#108)

* Improve reset function and velocity timing

* fixed PTT checkbox error

* Rewrite of chaperone adjust. Make drift impossible

* Formatting

* fixed mic mute on exit

* format

* Clean up interactions with new chaperone adjust

* Remove commented code

* Implement height toggle action and ui
This commit is contained in:
Kung-vr
2019-03-15 16:49:44 -05:00
committed by ykeara
parent db863dbec2
commit ab69d3180c
7 changed files with 554 additions and 268 deletions
@@ -205,6 +205,7 @@ void FixFloorTabController::eventLoopTick(
offset[0] = floorOffsetX;
offset[2] = floorOffsetZ;
}
parent->m_moveCenterTabController.reset();
parent->AddOffsetToUniverseCenter(
vr::TrackingUniverseStanding, offset, true );
statusMessage
@@ -214,6 +215,7 @@ void FixFloorTabController::eventLoopTick(
emit measureEndSignal();
setCanUndo( true );
state = 0;
parent->m_moveCenterTabController.zeroOffsets();
}
}
}
@@ -309,6 +311,7 @@ void FixFloorTabController::recenterClicked()
void FixFloorTabController::undoFixFloorClicked()
{
parent->m_moveCenterTabController.reset();
parent->AddOffsetToUniverseCenter(
vr::TrackingUniverseStanding, 0, -floorOffsetX, false );
parent->AddOffsetToUniverseCenter(
@@ -322,6 +325,7 @@ void FixFloorTabController::undoFixFloorClicked()
statusMessageTimeout = 1.0;
emit statusMessageSignal();
setCanUndo( false );
parent->m_moveCenterTabController.zeroOffsets();
}
} // namespace advsettings