Skip to content

Commit

Permalink
add back mittorn's exit zone
Browse files Browse the repository at this point in the history
  • Loading branch information
Velaron committed Feb 16, 2024
1 parent 56a9c43 commit 34f2f8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engine/client/in_touch.c
Original file line number Diff line number Diff line change
Expand Up @@ -2058,6 +2058,10 @@ int IN_TouchEvent( touchEventType type, int fingerID, float x, float y, float dx
}
}

// exit of console area
if( type == event_down && x < 0.1f && y > 0.9f )
Cbuf_AddText( "escape\n" );

// swipe from edge to exit console/chat
if(( x > 0.8f && x1 < -0.1f ) || ( x < 0.2f && x1 > 0.1f ))
{
Expand Down

0 comments on commit 34f2f8a

Please sign in to comment.