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:
ykeara
2022-02-23 16:06:03 -06:00
committed by GitHub
co-authored by TheMrGong
parent 522ba46ac6
commit eea713429d
24 changed files with 992 additions and 14 deletions
+57
View File
@@ -0,0 +1,57 @@
#pragma once
#include <openvr.h>
#include <iostream>
#include <string>
#include <easylogging++.h>
#include <utility>
#include <map>
/* Wrapper For OpenVR's IVR settings class, allows us to do our error logging
* while also minimizing code
*
*/
namespace ovr_system_wrapper
{
// might make sense to mirror ovr's errors exactly, but for now this is more
// than sufficient
enum class SystemError
{
NoError,
UndefinedError,
};
std::pair<SystemError, bool>
getBoolTrackedProperty( int deviceIndex,
vr::TrackedDeviceProperty property,
std::string customErrorMsg = "" );
std::pair<SystemError, int>
getInt32TrackedProperty( int deviceIndex,
vr::TrackedDeviceProperty property,
std::string customErrorMsg = "" );
std::pair<SystemError, float>
getFloatTrackedProperty( int deviceIndex,
vr::TrackedDeviceProperty property,
std::string customErrorMsg = "" );
std::pair<SystemError, std::string>
getStringTrackedProperty( int deviceIndex,
vr::TrackedDeviceProperty property,
std::string customErrorMsg = "" );
SystemError handleTrackedPropertyErrors( vr::TrackedDeviceProperty tdp,
vr::ETrackedPropertyError error,
std::string customErrorMsg );
std::string getPropertyFromEnum( vr::TrackedDeviceProperty );
bool deviceConnected( int Index );
vr::ETrackedDeviceClass getDeviceClass( int index );
std::vector<int> getAllConnectedDevices( bool onlyWearable = false );
std::string getDeviceName( int index );
} // namespace ovr_system_wrapper