projects
/
vrtris
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build-time config option for VR mode
[vrtris]
/
src
/
gamescr.c
diff --git
a/src/gamescr.c
b/src/gamescr.c
index
07193fa
..
9d15659
100644
(file)
--- a/
src/gamescr.c
+++ b/
src/gamescr.c
@@
-2,7
+2,9
@@
#include <time.h>
#include <assert.h>
#include <imago2.h>
#include <time.h>
#include <assert.h>
#include <imago2.h>
+#ifdef BUILD_VR
#include <goatvr.h>
#include <goatvr.h>
+#endif
#include "opengl.h"
#include "game.h"
#include "screen.h"
#include "opengl.h"
#include "game.h"
#include "screen.h"
@@
-164,6
+166,7
@@
static void stop(void)
static void update_input(float dtsec)
{
static void update_input(float dtsec)
{
+#ifdef BUILD_VR
int num_vr_sticks;
if((num_vr_sticks = goatvr_num_sticks()) > 0) {
int num_vr_sticks;
if((num_vr_sticks = goatvr_num_sticks()) > 0) {
@@
-178,6
+181,7
@@
static void update_input(float dtsec)
joy_axis[GPAD_LSTICK_Y] = p[1];
}
}
joy_axis[GPAD_LSTICK_Y] = p[1];
}
}
+#endif /* BUILD_VR */
ginp_bnstate = 0;
ginp_bnstate = 0;