1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-01 18:27:55 +00:00

initial implementation of VR

This commit is contained in:
Zeno Rogue
2020-11-19 18:20:06 +01:00
parent 4444fa6bf1
commit 0de8ce9a10
16 changed files with 1315 additions and 49 deletions

View File

@@ -224,6 +224,8 @@
#define PSEUDOKEY_WHEELDOWN 2501
#define PSEUDOKEY_WHEELUP 2502
#define PSEUDOKEY_RELEASE 2503
#define PSEUDOKEY_EXIT 2504
#define PSEUDOKEY_MENU 2505
#ifndef CAP_PNG
#define CAP_PNG (!ISMOBWEB)
@@ -312,6 +314,10 @@
#define CAP_RACING (!ISMOBWEB && !ISMINI)
#endif
#ifndef CAP_VR
#define CAP_VR ISSTEAM
#endif
#ifndef CAP_LEGACY
#define CAP_LEGACY 0
#endif
@@ -462,6 +468,10 @@ typedef unsigned GLuint;
#include <new>
#include <limits.h>
#if CAP_VR
#include "openvr.h"
#endif
#if CAP_VIDEO
#include <sys/wait.h>
#endif