From ae4ef25160a6f0126a2f14667b7ab3fb75c147fd Mon Sep 17 00:00:00 2001 From: Robert Beckebans Date: Tue, 20 May 2014 23:33:57 +0200 Subject: [PATCH] Keep mouse grabbed when opening a PDA or menu. fixes #122 --- neo/framework/common_frame.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/neo/framework/common_frame.cpp b/neo/framework/common_frame.cpp index d37d053a..dc983cc6 100644 --- a/neo/framework/common_frame.cpp +++ b/neo/framework/common_frame.cpp @@ -498,7 +498,11 @@ void idCommonLocal::Frame() #endif // RB end, DG end { - Sys_GrabMouseCursor( false ); + // RB: only release the mouse when opening a PDA or menu + if( console->Active() ) + { + Sys_GrabMouseCursor( false ); + } usercmdGen->InhibitUsercmd( INHIBIT_SESSION, true ); chatting = true; }