la souris fait bouger qu'au clic gauche

This commit is contained in:
Thomas
2025-03-30 08:12:11 +02:00
parent 5b83435748
commit ce77fc810f
4 changed files with 16 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ var player: Human
var hasMouseInside = false
func _unhandled_input(event: InputEvent) -> void:
if event is InputEventMouseButton or event is InputEventScreenTouch:
if event.is_action_pressed("touch") or event is InputEventScreenTouch:
if event.pressed:
if clueEnabled:
if hasMouseInside: