Skip to content

Commit

Permalink
Initial code conversion for OpenVR SDK 2.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbruns committed Aug 24, 2024
1 parent dbb1195 commit f1de412
Show file tree
Hide file tree
Showing 9 changed files with 402 additions and 67 deletions.
136 changes: 115 additions & 21 deletions src/openvr/__init__.py

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions src/openvr/error_code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,11 +511,16 @@ class NotificationError_SystemWithUserValueAlreadyExists(NotificationError):
pass


class NotificationError_ServiceUnavailable(NotificationError):
pass


NotificationError.error_index[0] = NotificationError_OK
NotificationError.error_index[100] = NotificationError_InvalidNotificationId
NotificationError.error_index[101] = NotificationError_NotificationQueueFull
NotificationError.error_index[102] = NotificationError_InvalidOverlayHandle
NotificationError.error_index[103] = NotificationError_SystemWithUserValueAlreadyExists
NotificationError.error_index[104] = NotificationError_ServiceUnavailable


class InitError(ErrorCode):
Expand Down Expand Up @@ -1290,6 +1295,26 @@ class InitError_Compositor_CreateBackbufferDepth(InitError):
pass


class InitError_Compositor_CannotDRMLeaseDisplay(InitError):
pass


class InitError_Compositor_CannotConnectToDisplayServer(InitError):
pass


class InitError_Compositor_GnomeNoDRMLeasing(InitError):
pass


class InitError_Compositor_FailedToInitializeEncoder(InitError):
pass


class InitError_Compositor_CreateBlurTexture(InitError):
pass


class InitError_VendorSpecific_UnableToConnectToOculusRuntime(InitError):
pass

Expand Down Expand Up @@ -1562,6 +1587,11 @@ class InitError_LastError(InitError):
InitError.error_index[493] = InitError_Compositor_SystemLayerCreateSession
InitError.error_index[494] = InitError_Compositor_CreateInverseDistortUVs
InitError.error_index[495] = InitError_Compositor_CreateBackbufferDepth
InitError.error_index[496] = InitError_Compositor_CannotDRMLeaseDisplay
InitError.error_index[497] = InitError_Compositor_CannotConnectToDisplayServer
InitError.error_index[498] = InitError_Compositor_GnomeNoDRMLeasing
InitError.error_index[499] = InitError_Compositor_FailedToInitializeEncoder
InitError.error_index[500] = InitError_Compositor_CreateBlurTexture
InitError.error_index[1000] = InitError_VendorSpecific_UnableToConnectToOculusRuntime
InitError.error_index[1001] = InitError_VendorSpecific_WindowsNotInDevMode
InitError.error_index[1002] = InitError_VendorSpecific_OculusLinkNotEnabled
Expand Down Expand Up @@ -1819,12 +1849,17 @@ class SettingsError_UnsetSettingHasNoDefault(SettingsError):
pass


class SettingsError_AccessDenied(SettingsError):
pass


SettingsError.error_index[0] = SettingsError_None
SettingsError.error_index[1] = SettingsError_IPCFailed
SettingsError.error_index[2] = SettingsError_WriteFailed
SettingsError.error_index[3] = SettingsError_ReadFailed
SettingsError.error_index[4] = SettingsError_JsonParseFailed
SettingsError.error_index[5] = SettingsError_UnsetSettingHasNoDefault
SettingsError.error_index[6] = SettingsError_AccessDenied


class CompositorError(ErrorCode):
Expand Down
Binary file modified src/openvr/libopenvr_api_32.dll
Binary file not shown.
Binary file modified src/openvr/libopenvr_api_32.so
Binary file not shown.
Binary file modified src/openvr/libopenvr_api_64.dll
Binary file not shown.
Binary file modified src/openvr/libopenvr_api_64.so
Binary file not shown.
2 changes: 1 addition & 1 deletion src/openvr/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# 3) we can import it into your module
# http://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package

__version__ = '1.26.0701'
__version__ = '2.5.0101'
Loading

0 comments on commit f1de412

Please sign in to comment.