From b68def2b9cca456f99a9778e28b42f669f5a18a0 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Mon, 24 May 2021 04:53:35 +0300 Subject: [PATCH] engine: touch: only pop up touch keyboard on FINGERDOWN events --- engine/client/in_touch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/client/in_touch.c b/engine/client/in_touch.c index b3cd2b3a..a35a1a67 100644 --- a/engine/client/in_touch.c +++ b/engine/client/in_touch.c @@ -1956,7 +1956,8 @@ int IN_TouchEvent( touchEventType type, int fingerID, float x, float y, float dx // Hack for keyboard, hope it help if( cls.key_dest == key_console || cls.key_dest == key_message ) { - Key_EnableTextInput( true, true ); + if ( type == event_down ) // don't pop it again on event_up + Key_EnableTextInput( true, true ); if( cls.key_dest == key_console ) { static float y1 = 0;