0 votes

I just converted my project (from 3.0.6) to 3.1 Note : ALWAYS BACKUP first and although it loaded well at first, it seems like InputEventScreenDrag is not being triggered anymore.

As per below code snippet :

func _input(ev):
    if(ev is InputEventMouseButton && ev.pressed == false):
    if(ev is InputEventScreenDrag):
        on_dragging_touch( ev )


func _input_event(camera, event, pos, normal, shape):
    if (event is InputEventMouseButton and event.is_pressed() == true):
        on_pickup_obj( event, self )

on_pickup_obj() is still being called whereas on_dragging_touch() is not.
Any ideas if this is a bug or new setting that needs to be switched on ?

PS: on_release_touch() is working so it is a drag issue.


in Engine by (851 points)
edited by

1 Answer

+1 vote
Best answer

Found it ! Had to turn on this setting :

[Input Devices -> Pointing -> Emulate touch from mouse



by (851 points)
edited by
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 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 webmaster@godotengine.org with your username.