mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-13 22:22:05 +00:00
Small mouse2 Imgui bugfix
This commit is contained in:
parent
573320dccd
commit
7a30d447b7
1 changed files with 5 additions and 2 deletions
|
@ -122,8 +122,10 @@ bool HandleKeyEvent( const sysEvent_t& keyEvent )
|
|||
// RB: allow navigation like in a level editor
|
||||
g_MousePressed[1] = pressed;
|
||||
|
||||
ImGuiTools::SetReleaseToolMouse( !pressed );
|
||||
|
||||
if( ImGuiTools::AreEditorsActive() )
|
||||
{
|
||||
ImGuiTools::SetReleaseToolMouse( !pressed );
|
||||
}
|
||||
//common->Printf( "mouse2 pressed %d\n", int( pressed ) );
|
||||
|
||||
return true;
|
||||
|
@ -131,6 +133,7 @@ bool HandleKeyEvent( const sysEvent_t& keyEvent )
|
|||
|
||||
if( g_MousePressed[1] )
|
||||
{
|
||||
// RB: ignore everything as long right mouse button is pressed
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue