Skip to content

Commit

Permalink
Reset position on profile load
Browse files Browse the repository at this point in the history
  • Loading branch information
oneup03 committed Sep 20, 2024
1 parent ce89e8f commit 3b97e5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Checkout the [Compatibility List](https://github.com/oneup03/VRto3D/wiki/Compati
- Modify the `Steam\steamapps\common\SteamVR\drivers\vrto3d\resources\settings\default.vrsettings` for your setup
- Any changes made to this configuration require a restart of SteamVR to take effect
- Fields with a `+` next to them will be saved to a game's profile when you press `Ctrl + F7`
- If you want to change a game's profile, either delete it from `Steam\config\steamvr.vrsettings` or use `Ctrl + F10` to load your current `default.vrsettings` and then `Ctrl + F7` to save the new settings
- If a game's profile exists in `Steam\config\steamvr.vrsettings` then it will override `default.vrsettings` you will hear a beep to indicate a profile loaded

| Field Name | Type | Description | Default Value |
Expand Down
2 changes: 2 additions & 0 deletions vrto3d/src/hmd_device_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,7 @@ void StereoDisplayComponent::LoadSettings(const std::string& app_name, uint32_t

AdjustDepth(config_.depth, false, device_index);
AdjustConvergence(config_.convergence, false, device_index);
config_.pose_reset = true;

DriverLog("Loaded %s profile\n", app_name);
}
Expand All @@ -1174,6 +1175,7 @@ void StereoDisplayComponent::LoadDefaults(uint32_t device_index)
config_ = def_config_;
AdjustDepth(config_.depth, false, device_index);
AdjustConvergence(config_.convergence, false, device_index);
config_.pose_reset = true;
DriverLog("Loaded defaults from user config file\n");
BeepSuccess();
}

0 comments on commit 3b97e5f

Please sign in to comment.