mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-02-28 14:41:09 +00:00
Keep mouse grabbed when opening a PDA or menu. fixes #122
This commit is contained in:
parent
54ec429fa8
commit
ae4ef25160
1 changed files with 5 additions and 1 deletions
|
@ -498,7 +498,11 @@ void idCommonLocal::Frame()
|
||||||
#endif
|
#endif
|
||||||
// RB end, DG end
|
// 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 );
|
usercmdGen->InhibitUsercmd( INHIBIT_SESSION, true );
|
||||||
chatting = true;
|
chatting = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue