mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-02-28 06:32:00 +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
|
@ -497,8 +497,12 @@ void idCommonLocal::Frame()
|
|||
|| ( game && game->InhibitControls() ) )
|
||||
#endif
|
||||
// RB end, DG end
|
||||
{
|
||||
// RB: only release the mouse when opening a PDA or menu
|
||||
if( console->Active() )
|
||||
{
|
||||
Sys_GrabMouseCursor( false );
|
||||
}
|
||||
usercmdGen->InhibitUsercmd( INHIBIT_SESSION, true );
|
||||
chatting = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue