Add chaperone autoprofiles, crash recovery, and space fix revert

This commit is contained in:
Kung-vr
2019-10-13 03:56:57 +09:00
parent c07ade8771
commit 2e6dd3b8fe
11 changed files with 278 additions and 60 deletions
@@ -157,6 +157,7 @@ private:
bool m_chaperoneShowDashboardActive = false;
unsigned settingsUpdateCounter = 0;
void updateChaperoneSettings();
bool m_isHapticGood = true;
bool m_isHMDActive = false;
@@ -165,6 +166,8 @@ private:
bool m_leftHapticClickActivated = false;
bool m_rightHapticClickActivated = false;
bool m_autosaveComplete = false;
int m_updateTicksChaperoneReload = 0;
vr::VRActionHandle_t m_rightActionHandle;
@@ -219,6 +222,9 @@ public:
Q_INVOKABLE QString getChaperoneProfileName( unsigned index );
float getBoundsMaxY();
std::pair<bool, unsigned>
getChaperoneProfileIndexFromName( std::string name );
void createNewAutosaveProfile();
// actions
void addLeftHapticClick( bool leftHapticClickPressed );
@@ -265,6 +271,7 @@ public slots:
bool includesProximityWarningSettings );
void applyChaperoneProfile( unsigned index );
void deleteChaperoneProfile( unsigned index );
void applyAutosavedProfile();
void reset();