enum {
OPTCFG_SIZE,
+#ifdef BUILD_VR
OPTCFG_VR,
+#endif
OPTCFG_FULLSCREEN,
OPTCFG_WINDOWED,
OPTCFG_SCREEN,
static struct optcfg_option options[] = {
// short, long, id, desc
{'s', "size", OPTCFG_SIZE, "window size (WxH)"},
+#ifdef BUILD_VR
{0, "vr", OPTCFG_VR, "enable VR mode"},
+#endif
{'f', "fullscreen", OPTCFG_FULLSCREEN, "run in fullscreen mode"},
{'w', "windowed", OPTCFG_WINDOWED, "run in windowed mode"},
{0, "screen", OPTCFG_SCREEN, "select starting screen"},
}
break;
+#ifdef BUILD_VR
case OPTCFG_VR:
if(is_enabled(oc)) {
opt.flags |= OPT_VR;
opt.flags &= ~OPT_VR;
}
break;
+#endif
case OPTCFG_FULLSCREEN:
if(is_enabled(oc)) {