engine: client: touch: don't reset state if clientonly didn't change

This commit is contained in:
Bohdan Shulyar 2025-08-13 18:31:21 +03:00 committed by a1batross
parent 6b4a16b337
commit f0720026fc

View File

@ -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;