Skip to content

Commit

Permalink
OpenVR SDK 1.3.22
Browse files Browse the repository at this point in the history
General:
* Removed DLL exports in the static library version of openvr_api.dll

Driver Interface:
* Added Prop_AdditionalSystemReportData_String, which allows drivers to put additional information about its devices in the system report.
* Added VREvent_SystemReport_Started, which gives drivers the opportunity to log before a system report is generated.
* Added IVRServerDriverHost::RequestRestart, which allows a driver to request a restart with a message that will be shown to the user, and an optional executable to run.

IVROverlay:
* Added viewportscale to scroll events. This is the overlay's vertical size relative to the overlay height.

IVRInput:
* Added IsUsingLegacyInput, which returns true if the application is using legacy input.

[git-p4: depot-paths = "//vr/steamvr/sdk_release/": change = 5016734]
  • Loading branch information
JoeLudwig committed Mar 28, 2019
1 parent 823135d commit b72abce
Show file tree
Hide file tree
Showing 25 changed files with 305 additions and 59 deletions.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ endif()

# Get platform.
if(WIN32)
set(PLATFORM_NAME "win")
set(PLATFORM_NAME "win")
if(NOT BUILD_SHARED)
add_definitions(-DOPENVR_BUILD_STATIC)
endif()
elseif(UNIX AND NOT APPLE)
if(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
set(PLATFORM_NAME "linux")
Expand Down
Binary file modified bin/linux32/libopenvr_api.so
Binary file not shown.
Binary file modified bin/linux32/libopenvr_api.so.dbg
Binary file not shown.
Binary file modified bin/linux64/libopenvr_api.so
Binary file not shown.
Binary file modified bin/linux64/libopenvr_api.so.dbg
Binary file not shown.
Binary file modified bin/osx32/libopenvr_api.dylib
Binary file not shown.
Binary file not shown.
Binary file modified bin/win32/openvr_api.dll
Binary file not shown.
Binary file modified bin/win32/openvr_api.pdb
Binary file not shown.
Binary file modified bin/win64/openvr_api.dll
Binary file not shown.
Binary file modified bin/win64/openvr_api.pdb
Binary file not shown.
91 changes: 70 additions & 21 deletions headers/openvr.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
namespace vr
{
static const uint32_t k_nSteamVRVersionMajor = 1;
static const uint32_t k_nSteamVRVersionMinor = 2;
static const uint32_t k_nSteamVRVersionBuild = 10;
static const uint32_t k_nSteamVRVersionMinor = 3;
static const uint32_t k_nSteamVRVersionBuild = 20;
} // namespace vr

// vrtypes.h
Expand Down Expand Up @@ -352,6 +352,8 @@ enum ETrackedDeviceProperty
Prop_AdditionalDeviceSettingsPath_String = 1042, // driver-relative path to additional device and global configuration settings
Prop_Identifiable_Bool = 1043, // Whether device supports being identified from vrmonitor (e.g. blink LED, vibrate haptics, etc)
Prop_BootloaderVersion_Uint64 = 1044,
Prop_AdditionalSystemReportData_String = 1045, // additional string to include in system reports about a tracked device
Prop_CompositeFirmwareVersion_String = 1046, // additional FW components from a device that gets propagated into reports

// Properties that are unique to TrackedDeviceClass_HMD
Prop_ReportsTimeSinceVSync_Bool = 2000,
Expand Down Expand Up @@ -457,6 +459,8 @@ enum ETrackedDeviceProperty
Prop_TrackingRangeMinimumMeters_Float = 4004,
Prop_TrackingRangeMaximumMeters_Float = 4005,
Prop_ModeLabel_String = 4006,
Prop_CanWirelessIdentify_Bool = 4007, // volatile, based on radio presence and fw discovery
Prop_Nonce_Int32 = 4008,

// Properties that are used for user interface like icons names
Prop_IconPathName_String = 5000, // DEPRECATED. Value not referenced. Now expected to be part of icon path properties.
Expand Down Expand Up @@ -688,7 +692,7 @@ enum EVREventType
VREvent_OverlayHidden = 501,
VREvent_DashboardActivated = 502,
VREvent_DashboardDeactivated = 503,
VREvent_DashboardThumbSelected = 504, // Sent to the overlay manager - data is overlay
//VREvent_DashboardThumbSelected = 504, // Sent to the overlay manager - data is overlay - No longer sent
VREvent_DashboardRequested = 505, // Sent to the overlay manager - data is overlay
VREvent_ResetDashboard = 506, // Send to the overlay manager
VREvent_RenderToast = 507, // Send to the dashboard to render a toast - data is the notification ID
Expand Down Expand Up @@ -716,6 +720,7 @@ enum EVREventType
VREvent_RoomViewShown = 526, // Sent by compositor whenever room-view is enabled
VREvent_RoomViewHidden = 527, // Sent by compositor whenever room-view is disabled
VREvent_ShowUI = 528, // data is showUi
VREvent_ShowDevTools = 529, // data is showDevTools

VREvent_Notification_Shown = 600,
VREvent_Notification_Hidden = 601,
Expand All @@ -727,6 +732,7 @@ enum EVREventType
VREvent_QuitAborted_UserPrompt = 702, // data is process
VREvent_QuitAcknowledged = 703, // data is process
VREvent_DriverRequestedQuit = 704, // The driver has requested that SteamVR shut down
VREvent_RestartRequested = 705, // A driver or other component wants the user to restart SteamVR

VREvent_ChaperoneDataHasChanged = 800, // Sent when the process needs to call VRChaperone()->ReloadInfo()
VREvent_ChaperoneUniverseHasChanged = 801,
Expand Down Expand Up @@ -783,6 +789,11 @@ enum EVREventType
VREvent_Compositor_MirrorWindowHidden = 1401,
VREvent_Compositor_ChaperoneBoundsShown = 1410,
VREvent_Compositor_ChaperoneBoundsHidden = 1411,
VREvent_Compositor_DisplayDisconnected = 1412,
VREvent_Compositor_DisplayReconnected = 1413,
VREvent_Compositor_HDCPError = 1414, // data is hdcpError
VREvent_Compositor_ApplicationNotResponding = 1415,
VREvent_Compositor_ApplicationResumed = 1416,

VREvent_TrackedCamera_StartVideoStream = 1500,
VREvent_TrackedCamera_StopVideoStream = 1501,
Expand Down Expand Up @@ -811,6 +822,8 @@ enum EVREventType
VREvent_SpatialAnchors_RequestPoseUpdate = 1802, // data is spatialAnchor. sent to specific driver
VREvent_SpatialAnchors_RequestDescriptorUpdate = 1803, // data is spatialAnchor. sent to specific driver

VREvent_SystemReport_Started = 1900, // user or system initiated generation of a system report. broadcast

// Vendors are free to expose private events in this reserved region
VREvent_VendorSpecific_Reserved_Start = 10000,
VREvent_VendorSpecific_Reserved_End = 19999,
Expand Down Expand Up @@ -890,11 +903,12 @@ struct VREvent_Mouse_t
uint32_t button; // EVRMouseButton enum
};

/** used for simulated mouse wheel scroll in overlay space */
/** used for simulated mouse wheel scroll */
struct VREvent_Scroll_t
{
float xdelta, ydelta; // movement in fraction of the pad traversed since last delta, 1.0 for a full swipe
uint32_t repeatCount;
float xdelta, ydelta;
uint32_t unused;
float viewportscale; // For scrolling on an overlay with laser mouse, this is the overlay's vertical size relative to the overlay height. Range: [0,1]
};

/** when in mouse input mode you can receive data from the touchpad, these events are only sent if the users finger
Expand Down Expand Up @@ -1087,13 +1101,33 @@ enum EShowUIType
ShowUI_ManageTrackers = 1,
ShowUI_QuickStart = 2,
ShowUI_Pairing = 3,
ShowUI_Settings = 4,
};

struct VREvent_ShowUI_t
{
EShowUIType eType;
};

struct VREvent_ShowDevTools_t
{
int32_t nBrowserIdentifier;
};

enum EHDCPError
{
HDCPError_None = 0,
HDCPError_LinkLost = 1,
HDCPError_Tampered = 2,
HDCPError_DeviceRevoked = 3,
HDCPError_Unknown = 4
};

struct VREvent_HDCPError_t
{
EHDCPError eCode;
};

typedef union
{
VREvent_Reserved_t reserved;
Expand Down Expand Up @@ -1124,6 +1158,8 @@ typedef union
VREvent_SpatialAnchor_t spatialAnchor;
VREvent_ProgressUpdate_t progressUpdate;
VREvent_ShowUI_t showUi;
VREvent_ShowDevTools_t showDevTools;
VREvent_HDCPError_t hdcpError;
/** NOTE!!! If you change this you MUST manually update openvr_interop.cs.py */
} VREvent_Data_t;

Expand Down Expand Up @@ -1384,7 +1420,7 @@ enum EVRSkeletalMotionRange

enum EVRSkeletalTrackingLevel
{
// body part location can’t be directly determined by the device. Any skeletal pose provided by
// body part location can't be directly determined by the device. Any skeletal pose provided by
// the device is estimated by assuming the position required to active buttons, triggers, joysticks,
// or other input sensors.
// E.g. Vive Controller, Gamepad
Expand Down Expand Up @@ -1468,6 +1504,7 @@ enum EVRInitError
VRInitError_Init_USBServiceBusy = 140,
VRInitError_Init_VRWebHelperStartupFailed = 141,
VRInitError_Init_TrackerManagerInitFailed = 142,
VRInitError_Init_AlreadyRunning = 143,

VRInitError_Driver_Failed = 200,
VRInitError_Driver_Unknown = 201,
Expand Down Expand Up @@ -1597,6 +1634,9 @@ enum EVRInitError
VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113,

VRInitError_Steam_SteamInstallationNotFound = 2000,

// Strictly a placeholder
VRInitError_LastError
};

enum EVRScreenshotType
Expand Down Expand Up @@ -1732,29 +1772,33 @@ struct ImuSample_t
// figure out how to import from the VR API dll
#if defined(_WIN32)

#ifdef VR_API_EXPORT
#define VR_INTERFACE extern "C" __declspec( dllexport )
#else
#define VR_INTERFACE extern "C" __declspec( dllimport )
#endif
#if !defined(OPENVR_BUILD_STATIC)
#ifdef VR_API_EXPORT
#define VR_INTERFACE extern "C" __declspec( dllexport )
#else
#define VR_INTERFACE extern "C" __declspec( dllimport )
#endif
#else
#define VR_INTERFACE extern "C"
#endif

#elif defined(__GNUC__) || defined(COMPILER_GCC) || defined(__APPLE__)

#ifdef VR_API_EXPORT
#define VR_INTERFACE extern "C" __attribute__((visibility("default")))
#define VR_INTERFACE extern "C" __attribute__((visibility("default")))
#else
#define VR_INTERFACE extern "C"
#define VR_INTERFACE extern "C"
#endif

#else
#error "Unsupported Platform."
#error "Unsupported Platform."
#endif


#if defined( _WIN32 )
#define VR_CALLTYPE __cdecl
#define VR_CALLTYPE __cdecl
#else
#define VR_CALLTYPE
#define VR_CALLTYPE
#endif

} // namespace vr
Expand Down Expand Up @@ -2508,6 +2552,7 @@ namespace vr
static const char * const k_pch_Lighthouse_PowerManagedBaseStations_String = "PowerManagedBaseStations";
static const char * const k_pch_Lighthouse_PowerManagedBaseStations2_String = "PowerManagedBaseStations2";
static const char * const k_pch_Lighthouse_EnableImuFallback_Bool = "enableImuFallback";
static const char * const k_pch_Lighthouse_NewPairing_Bool = "newPairing";

//-----------------------------------------------------------------------------
// null keys
Expand Down Expand Up @@ -2609,9 +2654,10 @@ namespace vr
static const char * const k_pch_Dashboard_Section = "dashboard";
static const char * const k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard";
static const char * const k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode";
static const char * const k_pch_Dashboard_EnableWebUI = "webUI";
static const char * const k_pch_Dashboard_EnableWebUIDevTools = "webUIDevTools";
static const char * const k_pch_Dashboard_EnableWebUIDashboardReplacement = "webUIDashboard";
static const char * const k_pch_Dashboard_UseWebDashboard = "useWebDashboard";
static const char * const k_pch_Dashboard_UseWebSettings = "useWebSettings";
static const char * const k_pch_Dashboard_UseWebIPD = "useWebIPD";
static const char * const k_pch_Dashboard_UseWebPowerMenu = "useWebPowerMenu";

//-----------------------------------------------------------------------------
// model skin keys
Expand Down Expand Up @@ -3178,7 +3224,7 @@ struct NotificationBitmap_t
, m_nHeight( 0 )
, m_nBytesPerPixel( 0 )
{
};
}

void *m_pImageData;
int32_t m_nWidth;
Expand Down Expand Up @@ -4463,6 +4509,9 @@ namespace vr

/** Shows the current binding all the actions in the specified action sets */
virtual EVRInputError ShowBindingsForActionSet( VR_ARRAY_COUNT( unSetCount ) VRActiveActionSet_t *pSets, uint32_t unSizeOfVRSelectedActionSet_t, uint32_t unSetCount, VRInputValueHandle_t originToHighlight ) = 0;

// --------------- Legacy Input ------------------- //
virtual bool IsUsingLegacyInput() = 0;
};

static const char * const IVRInput_Version = "IVRInput_005";
Expand Down
Loading

0 comments on commit b72abce

Please sign in to comment.