# HG changeset patch # User John Tsiombikas # Date 1380330789 -10800 # Node ID 251bc9e2e4a1760d471455ee482f6845efd31f04 # Parent cfe4979ab3eb84c20d15be111a0a9a02f49320c6 made mouselook only affect horizontal movement in VR mode diff -r cfe4979ab3eb -r 251bc9e2e4a1 src/main.cc --- a/src/main.cc Sat Sep 21 07:09:48 2013 +0300 +++ b/src/main.cc Sat Sep 28 04:13:09 2013 +0300 @@ -400,9 +400,9 @@ } } +static bool fullscreen; static void toggle_fullscreen() { - static bool fullscreen; static int prev_x, prev_y; static int prev_xsz, prev_ysz; @@ -528,6 +528,10 @@ int dx = x - center_x; int dy = y - center_y; + if(use_vr && fullscreen) { + dy = 0; + } + if(!dx && !dy) { return; }