diff options
Diffstat (limited to 'src/engine/client/ec_inp.c')
| -rw-r--r-- | src/engine/client/ec_inp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/engine/client/ec_inp.c b/src/engine/client/ec_inp.c index d639cf72..dc21bdae 100644 --- a/src/engine/client/ec_inp.c +++ b/src/engine/client/ec_inp.c @@ -35,7 +35,7 @@ static int input_current = 0; static unsigned int last_release = 0; #else static int input_grabbed = 0; -static int input_use_grab = 1; +static int input_use_grab = 0; #endif static unsigned int release_delta = -1; @@ -296,6 +296,12 @@ void inp_update() #else int i; + if(input_grabbed && !gfx_window_active()) + inp_mouse_mode_absolute(); + + /*if(!input_grabbed && gfx_window_active()) + inp_mouse_mode_relative();*/ + /* clear and begin count on the other one */ mem_zero(&input_count[input_current], sizeof(input_count[input_current])); mem_copy(input_state[input_current], input_state[input_current^1], sizeof(input_state[input_current])); |