mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-07 08:20:11 +01:00
Multitouch View tweaks
This commit is contained in:
@@ -20,15 +20,13 @@ func _unhandled_input(event):
|
||||
var ptr_id = _os2own[event.index]
|
||||
state.erase(ptr_id)
|
||||
_os2own.erase(event.index)
|
||||
return true
|
||||
get_tree().set_input_as_handled()
|
||||
|
||||
elif event is InputEventScreenDrag: # Movement.
|
||||
if _os2own.has(event.index): # Defensively discard index if not known.
|
||||
var ptr_id = _os2own[event.index]
|
||||
state[ptr_id] = event.position
|
||||
return true
|
||||
|
||||
return false
|
||||
get_tree().set_input_as_handled()
|
||||
|
||||
|
||||
func _find_free_pointer_id():
|
||||
|
||||
Reference in New Issue
Block a user