aboutsummaryrefslogtreecommitdiff
path: root/client/global.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-07-25 19:22:49 +0200
committertpart <tpart120@proton.me>2024-07-30 15:04:00 +0200
commit5f1a8b6d847471bb6b8ed63585408ed7e9af2d57 (patch)
treebb56b7688bb4e61a7412e44e31b9d0247acd62e3 /client/global.gd
parent77db2babd6c0cf5e754bdd3d8772e0e5931be274 (diff)
downloadhurrycurry-5f1a8b6d847471bb6b8ed63585408ed7e9af2d57.tar
hurrycurry-5f1a8b6d847471bb6b8ed63585408ed7e9af2d57.tar.bz2
hurrycurry-5f1a8b6d847471bb6b8ed63585408ed7e9af2d57.tar.zst
Fix: Touch emulates mouse which breaks auto touch detection
Diffstat (limited to 'client/global.gd')
-rw-r--r--client/global.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/global.gd b/client/global.gd
index 0a510d4c..3cf2816d 100644
--- a/client/global.gd
+++ b/client/global.gd
@@ -120,7 +120,7 @@ func _input(event):
if not using_touch:
using_touch = true
using_touch_change.emit(using_touch)
- if event is InputEventMouseButton or event is InputEventKey or event is InputEventJoypadButton or event is InputEventJoypadMotion:
+ if event is InputEventKey or event is InputEventJoypadButton or event is InputEventJoypadMotion:
if using_touch:
using_touch = false
using_touch_change.emit(using_touch)