X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=vrtris;a=blobdiff_plain;f=src%2Fgamescr.c;h=9d156593c4febf73c47fb198e9e6fd2010431c29;hp=07193fa3edafc4056eb1d50849428efcd6b4fd6f;hb=96757b3e8d4c7ad71ebcae67c40c5fed14c471ce;hpb=d6638277efddf2fd47de884af174f907789b82ec diff --git a/src/gamescr.c b/src/gamescr.c index 07193fa..9d15659 100644 --- a/src/gamescr.c +++ b/src/gamescr.c @@ -2,7 +2,9 @@ #include #include #include +#ifdef BUILD_VR #include +#endif #include "opengl.h" #include "game.h" #include "screen.h" @@ -164,6 +166,7 @@ static void stop(void) static void update_input(float dtsec) { +#ifdef BUILD_VR 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]; } } +#endif /* BUILD_VR */ ginp_bnstate = 0;