Monado OpenXR Runtime
Loading...
Searching...
No Matches
XRTVRSettings_002.hpp
Go to the documentation of this file.
1// Copyright 2026, Beyley Cardellio
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Implementation of the IVRSettings interface version 002.
6 *
7 * @author Beyley Cardellio <ep1cm1n10n123@gmail.com>
8 * @ingroup openvr_interfaces
9 */
10
11#pragma once
12
14
15#include "openvr_interfaces_unified.h"
16#include "openvr_forward_macros.h"
17
19
20
21namespace xrt::state_trackers::openvr {
22
23using namespace vr;
24
25class XRTVRSettings_002 : public XRTVRSettings_003, public vr::IVRSettings_002
26{
27public:
28 // @todo Remove when clang-format is updated in CI
29 // clang-format off
31 // clang-format on
32
33 FnTable_IVRSettings_002();
34
35 ForwardDeclareBase_IVRSettings(XRTVRSettings_003);
36
37 Forward_IVRSettings_GetSettingsErrorNameFromEnum();
38
39 bool
40 Sync(bool bForce = false, EVRSettingsError *peError = nullptr) override
41 {
42 openvr_logger logger;
43 OPENVR_LOGGER_INIT(logger);
44
45 OPENVR_LOG_UNIMPLEMENTED_RET(logger, "Sync(bForce=%d, peError=%p) -> false", false,
46 static_cast<int>(bForce), static_cast<const void *>(peError));
47 }
48
49 Forward_IVRSettings_SetBool();
50 Forward_IVRSettings_SetInt32();
51 Forward_IVRSettings_SetFloat();
52 Forward_IVRSettings_SetString();
53 Forward_IVRSettings_GetBool_003();
54 Forward_IVRSettings_GetInt32_003();
55 Forward_IVRSettings_GetFloat_003();
56 Forward_IVRSettings_GetString_003();
57 Forward_IVRSettings_RemoveSection();
58 Forward_IVRSettings_RemoveKeyInSection();
59};
60
61}; // namespace xrt::state_trackers::openvr
Implementation of the latest IVRSettings_003 interface version.
Definition XRTVRClientCore.hpp:152
Definition XRTVRSettings_002.hpp:26
Definition XRTVRSettings.hpp:24
Definitions missing from C++ header, present in C.
Definition blockqueue.hpp:15
Logging functions.
#define OPENVR_LOG_UNIMPLEMENTED_RET(logger, fmt, ret,...)
Specialized macro for logging an unimplemented function and returning a value.
Definition openvr_logger.hpp:57
Definition openvr_logger.hpp:30