From 08e29d9ac34cf1ae58c7decc65c8d7fa4a9dedc2 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 17 Oct 2019 10:46:41 +1100 Subject: [PATCH] Actually fix menus not working in webclient on desktop --- src/Input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Input.c b/src/Input.c index e4ad2ac1f..20d970a2d 100644 --- a/src/Input.c +++ b/src/Input.c @@ -201,7 +201,7 @@ cc_bool Input_RawMode, Input_TouchMode; void Pointer_SetPressed(int idx, cc_bool pressed) { #ifdef CC_BUILD_TOUCH - if (!(touchTypes[idx] & TOUCH_TYPE_GUI)) return; + if (Input_TouchMode && !(touchTypes[idx] & TOUCH_TYPE_GUI)) return; #endif if (pressed) { @@ -223,7 +223,7 @@ void Pointer_SetPosition(int idx, int x, int y) { Pointers[idx].x = x; Pointers[idx].y = y; #ifdef CC_BUILD_TOUCH - if (!(touchTypes[idx] & TOUCH_TYPE_GUI)) return; + if (Input_TouchMode && !(touchTypes[idx] & TOUCH_TYPE_GUI)) return; #endif Event_RaiseMove(&PointerEvents.Moved, idx, deltaX, deltaY); }