X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fgame.c;h=05bdc95d9976ec86d6d5f1f0cab6aa14f01cbf89;hb=32d517e60844b73bc27ffb6ae67061d0429b7927;hp=f2d888aae41b29eb76b5bacc5cd3c3dbb2b80d6b;hpb=a6bd42c022f3b1c12a54444e5e469215f2ecbe27;p=vrtris diff --git a/src/game.c b/src/game.c index f2d888a..05bdc95 100644 --- a/src/game.c +++ b/src/game.c @@ -34,6 +34,7 @@ int game_init(int argc, char **argv) return -1; } goatvr_set_origin_mode(GOATVR_HEAD); + goatvr_set_units_scale(10.0f); goatvr_startvr(); should_swap = goatvr_should_swap(); @@ -108,7 +109,7 @@ void game_display(void) /* non-VR mode */ glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - cgm_mperspective(proj_matrix, cgm_deg_to_rad(50.0), win_aspect, 0.5, 500.0); + cgm_mperspective(proj_matrix, cgm_deg_to_rad(40.0), win_aspect, 0.5, 500.0); glMatrixMode(GL_PROJECTION); glLoadMatrixf(proj_matrix); @@ -154,6 +155,12 @@ void game_keyboard(int key, int pressed) } break; + case KEY_HOME: + if(opt.flags & OPT_VR) { + goatvr_recenter(); + } + break; + default: break; }