Drag and drop input for PC and Mobile (By a website)?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By RafaelGomes

So, i have an game that i’m working on, and i’m getting into the problem that, i can’t drag and drop some itens that i need in mobile devices, is there any way that i could do the input for both at the same time?
Thanks

:bust_in_silhouette: Reply From: RafaelGomes

In case someone have the same issue, here’s how i solved it, i just used:

 func _input(event):
    	if event is InputEventScreenDrag:
    		clickPosition = event.position

Using this i could simulate touch and click in godot project settings.