Skip to content

Commit

Permalink
platform: android: fix back button
Browse files Browse the repository at this point in the history
  • Loading branch information
Velaron committed Nov 2, 2023
1 parent d0146e7 commit 358e6dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engine/client/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,12 @@ void IN_ToggleClientMouse( int newstate, int oldstate )
{
if( newstate == oldstate )
return;

if( m_ignore.value )
{
host.mouse_visible = newstate == key_menu || newstate == key_console;
return;
}

// since SetCursorType controls cursor visibility
// execute it first, and then check mouse grab state
Expand Down

0 comments on commit 358e6dd

Please sign in to comment.