Implement beta IVRInput system for testing

In order to test new system:

Build and deploy application.

Copy both files from IVRInput/ dir into the bin/win64 folder.

Change const std::string m_actionManifestPath in steamivrinput.h to be
directly to your action_manifest.json file.

Run and turn on a Vive controller. Press the menu button. If logs say
"NEXT SONG SET!" it works.
This commit is contained in:
Vasily
2019-01-19 16:41:59 +01:00
parent 1ff3b6a335
commit 5accfd478a
7 changed files with 184 additions and 4 deletions
+22
View File
@@ -0,0 +1,22 @@
#ifndef STEAMIVRINPUT_H
#define STEAMIVRINPUT_H
#include <openvr.h>
class SteamIVRInput
{
public:
void Init( const bool init );
void Loop();
bool nextSongSet();
private:
const std::string m_actionManifestPath
= "YOUR_PATH_HERE\\action_manifest.json";
vr::VRActionHandle_t m_nextSongHandler = {};
vr::VRActionSetHandle_t m_mainSetHandler = {};
vr::VRActiveActionSet_t m_activeActionSet = {};
vr::InputDigitalActionData_t m_nextSongData = {};
};
#endif // STEAMIVRINPUT_H