forked from node-xr/node-openvr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
130 lines (116 loc) · 3.42 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
const openvr = require('bindings')('openvr');
openvr.EVRInitError = {
None: 0,
Unknown: 1,
Init_InstallationNotFound: 100,
Init_InstallationCorrupt: 101,
Init_VRClientDLLNotFound: 102,
Init_FileNotFound: 103,
Init_FactoryNotFound: 104,
Init_InterfaceNotFound: 105,
Init_InvalidInterface: 106,
Init_UserConfigDirectoryInvalid: 107,
Init_HmdNotFound: 108,
Init_NotInitialized: 109,
Init_PathRegistryNotFound: 110,
Init_NoConfigPath: 111,
Init_NoLogPath: 112,
Init_PathRegistryNotWritable: 113,
Init_AppInfoInitFailed: 114,
Init_Retry: 115,
Init_InitCanceledByUser: 116,
Init_AnotherAppLaunching: 117,
Init_SettingsInitFailed: 118,
Init_ShuttingDown: 119,
Init_TooManyObjects: 120,
Init_NoServerForBackgroundApp: 121,
Init_NotSupportedWithCompositor: 122,
Init_NotAvailableToUtilityApps: 123,
Init_Internal: 124,
Init_HmdDriverIdIsNone: 125,
Init_HmdNotFoundPresenceFailed: 126,
Init_VRMonitorNotFound: 127,
Init_VRMonitorStartupFailed: 128,
Init_LowPowerWatchdogNotSupported: 129,
Init_InvalidApplicationType: 130,
Init_NotAvailableToWatchdogApps: 131,
Init_WatchdogDisabledInSettings: 132,
Init_VRDashboardNotFound: 133,
Init_VRDashboardStartupFailed: 134,
Driver_Failed: 200,
Driver_Unknown: 201,
Driver_HmdUnknown: 202,
Driver_NotLoaded: 203,
Driver_RuntimeOutOfDate: 204,
Driver_HmdInUse: 205,
Driver_NotCalibrated: 206,
Driver_CalibrationInvalid: 207,
Driver_HmdDisplayNotFound: 208,
Driver_TrackedDeviceInterfaceUnknown: 209,
Driver_HmdDriverIdOutOfBounds: 211,
Driver_HmdDisplayMirrored: 212,
IPC_ServerInitFailed: 300,
IPC_ConnectFailed: 301,
IPC_SharedStateInitFailed: 302,
IPC_CompositorInitFailed: 303,
IPC_MutexInitFailed: 304,
IPC_Failed: 305,
IPC_CompositorConnectFailed: 306,
IPC_CompositorInvalidConnectResponse: 307,
IPC_ConnectFailedAfterMultipleAttempts: 308,
Compositor_Failed: 400,
Compositor_D3D11HardwareRequired: 401,
Compositor_FirmwareRequiresUpdate: 402,
Compositor_OverlayInitFailed: 403,
Compositor_ScreenshotsInitFailed: 404,
VendorSpecific_UnableToConnectToOculusRuntime: 1000,
VendorSpecific_HmdFound_CantOpenDevice: 1101,
VendorSpecific_HmdFound_UnableToRequestConfigStart: 1102,
VendorSpecific_HmdFound_NoStoredConfig: 1103,
VendorSpecific_HmdFound_ConfigTooBig: 1104,
VendorSpecific_HmdFound_ConfigTooSmall: 1105,
VendorSpecific_HmdFound_UnableToInitZLib: 1106,
VendorSpecific_HmdFound_CantReadFirmwareVersion: 1107,
VendorSpecific_HmdFound_UnableToSendUserDataStart: 1108,
VendorSpecific_HmdFound_UnableToGetUserDataStart: 1109,
VendorSpecific_HmdFound_UnableToGetUserDataNext: 1110,
VendorSpecific_HmdFound_UserDataAddressRange: 1111,
VendorSpecific_HmdFound_UserDataError: 1112,
VendorSpecific_HmdFound_ConfigFailedSanityCheck: 1113,
Steam_SteamInstallationNotFound: 2000,
};
openvr.EVRApplicationType = {
Other: 0,
Scene: 1,
Overlay: 2,
Background: 3,
Utility: 4,
VRMonitor: 5,
SteamWatchdog: 6,
Bootstrapper: 7,
};
openvr.EVREye = {
Left: 0,
Right: 1,
};
openvr.ETrackingUniverseOrigin = {
Seated: 0,
Standing: 1,
RawAndUncalibrated: 2,
};
openvr.ETrackingResult = {
Uninitialized: 1,
Calibrating_InProgress: 100,
Calibrating_OutOfRange: 101,
Running_OK: 200,
Running_OutOfRange: 201,
};
openvr.ETrackedDeviceClass = {
Invalid: 0,
HMD: 1,
Controller: 2,
GenericTracker: 3,
TrackingReference: 4,
DisplayRedirect: 5,
};
module.exports = openvr;