Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions driver/slimevr/resources/settings/default.vrsettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"driver_slimevr": {
"emulateVives": false
}
}
17 changes: 17 additions & 0 deletions driver/slimevr/resources/settings/settingsschema.vrsettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"title": "SlimeVR",
"show_without_hmd": true,
"values": [
{
"name": "/settings/driver_slimevr/emulateVives",
"control": "toggle",
"label": "Compatibility Mode",
"on_label": "Enabled",
"off_label": "Disabled",
"advanced_only": true,
"requires_restart": true
}
]
}
]
4 changes: 3 additions & 1 deletion src/TrackerDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ vr::EVRInitError SlimeVRDriver::TrackerDevice::Activate(uint32_t unObjectId) {

// Some device properties will be derived at runtime by SteamVR
// using the profile, such as the device class and controller type
GetDriver()->GetProperties()->SetStringProperty(props, vr::Prop_InputProfilePath_String, "{slimevr}/input/slimevr_tracker_profile.json");
bool emulate_vives = vr::VRSettings()->GetBool("driver_slimevr", "emulateVives");
std::string input_profile_path = emulate_vives ? "{htc}/input/vive_tracker_profile.json" : "{slimevr}/input/slimevr_tracker_profile.json";
GetDriver()->GetProperties()->SetStringProperty(props, vr::Prop_InputProfilePath_String, input_profile_path.c_str());

// Doesn't apply until restart of SteamVR
auto role = GetViveRole(tracker_role_);
Expand Down
Loading