+1 vote

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

Godot version v3.2.3 stable
in Engine by (44 points)

1 Answer

+1 vote
Best answer

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.

by (44 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.