aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDEC05EBA <dec05eba@protonmail.com>2019-12-16 01:23:03 +0100
committerDEC05EBA <dec05eba@protonmail.com>2019-12-16 01:23:03 +0100
commite7bbfac8cfc7c60f3222e0d903726acc28f38326 (patch)
tree080a1e688e8419b68ed486c830c9a9d16d06a912
parentba53125472a21a664de65e1bc5a1594d030034a3 (diff)
Fix controller not showing
-rw-r--r--src/main.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ba98f14..f6903ae 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -602,9 +602,12 @@ bool CMainApplication::BInit()
//char cwd[4096];
//getcwd(cwd, sizeof(cwd));
+ //printf("cwd: %s\n", cwd);
//dirname(cwd);
+ char action_manifest_path[PATH_MAX];
+ realpath("config/hellovr_actions.json", action_manifest_path);
- vr::VRInput()->SetActionManifestPath("../config/hellovr_actions.json");
+ vr::VRInput()->SetActionManifestPath(action_manifest_path);
vr::VRInput()->GetActionHandle( "/actions/demo/in/HideCubes", &m_actionHideCubes );
vr::VRInput()->GetActionHandle( "/actions/demo/in/HideThisController", &m_actionHideThisController);
@@ -1860,7 +1863,9 @@ Matrix4 CMainApplication::GetHMDMatrixPoseEye( vr::Hmd_Eye nEye )
Matrix4 CMainApplication::GetCurrentViewProjectionMatrix( vr::Hmd_Eye nEye )
{
Matrix4 matMVP;
- //glm::mat4 pp(m_mat4HMDPose.get());
+ //glm::mat4 pp;
+ //memcpy(&pp[0], m_mat4HMDPose.get(), sizeof(m_mat4HMDPose));
+ //memcpy(&m_mat4HMDPose[0], &pp[0], sizeof(pp));
if( nEye == vr::Eye_Left )
{
matMVP = m_mat4ProjectionLeft * m_mat4eyePosLeft * m_mat4HMDPose;