Skip to content

Commit

Permalink
vrclient: Support openvr v1.1.3b
Browse files Browse the repository at this point in the history
  • Loading branch information
aeikum committed Dec 20, 2018
1 parent f260a2c commit 8e26729
Show file tree
Hide file tree
Showing 46 changed files with 11,304 additions and 1,103 deletions.
1 change: 1 addition & 0 deletions vrclient_x64/gen_wrapper.py
Expand Up @@ -12,6 +12,7 @@
import re

sdk_versions = [
"v1.1.3b",
"v1.0.17",
"v1.0.16",
"v1.0.15",
Expand Down
4 changes: 2 additions & 2 deletions vrclient_x64/make_sdks.sh
Expand Up @@ -4,8 +4,8 @@

for f in $(git tag); do
mkdir openvr_$f
git show $f:./headers/openvr.h | grep -v 'pragma once' > openvr_$f/openvr.h
git show $f:./src/ivrclientcore.h | grep -v 'pragma once' > openvr_$f/ivrclientcore.h
git show $f:./headers/openvr.h | grep -av 'pragma once' > openvr_$f/openvr.h
git show $f:./src/ivrclientcore.h | grep -av 'pragma once' > openvr_$f/ivrclientcore.h
if [ x"$(head openvr_$f/ivrclientcore.h)" = x"" ]; then
rm openvr_$f/ivrclientcore.h
fi
Expand Down
36 changes: 36 additions & 0 deletions vrclient_x64/openvr_v1.1.3b/ivrclientcore.h
@@ -0,0 +1,36 @@
//========= Copyright Valve Corporation ============//

#include "openvr.h"

namespace vr
{

class IVRClientCore
{
public:
/** Initializes the system */
virtual EVRInitError Init( vr::EVRApplicationType eApplicationType, const char *pStartupInfo ) = 0;

/** cleans up everything in vrclient.dll and prepares the DLL to be unloaded */
virtual void Cleanup() = 0;

/** checks to see if the specified interface/version is supported in this vrclient.dll */
virtual EVRInitError IsInterfaceVersionValid( const char *pchInterfaceVersion ) = 0;

/** Retrieves any interface from vrclient.dll */
virtual void *GetGenericInterface( const char *pchNameAndVersion, EVRInitError *peError ) = 0;

/** Returns true if any driver has an HMD attached. Can be called outside of Init/Cleanup */
virtual bool BIsHmdPresent() = 0;

/** Returns an English error string from inside vrclient.dll which might be newer than the API DLL */
virtual const char *GetEnglishStringForHmdError( vr::EVRInitError eError ) = 0;

/** Returns an error symbol from inside vrclient.dll which might be newer than the API DLL */
virtual const char *GetIDForVRInitError( vr::EVRInitError eError ) = 0;
};

static const char * const IVRClientCore_Version = "IVRClientCore_003";


}

0 comments on commit 8e26729

Please sign in to comment.