From f0720026fc3cf877cd21304408d2ae95f8a0a387 Mon Sep 17 00:00:00 2001 From: Bohdan Shulyar Date: Wed, 13 Aug 2025 18:31:21 +0300 Subject: [PATCH] engine: client: touch: don't reset state if clientonly didn't change --- engine/client/in_touch.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/client/in_touch.c b/engine/client/in_touch.c index fe2006ce..5f74c471 100644 --- a/engine/client/in_touch.c +++ b/engine/client/in_touch.c @@ -530,6 +530,9 @@ static touch_button_t *Touch_FindFirst( touchbuttonlist_t *list, const char *nam void Touch_SetClientOnly( byte state ) { // TODO: fix clash with vgui cursors + if( touch.clientonly == state ) + return; + touch.clientonly = state; touch.resize_finger = touch.move_finger = touch.look_finger = touch.wheel_finger = -1;