Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i make this work on _gui_input()? #38

Open
shafnaz opened this issue Mar 5, 2024 · 3 comments
Open

How do i make this work on _gui_input()? #38

shafnaz opened this issue Mar 5, 2024 · 3 comments

Comments

@shafnaz
Copy link

shafnaz commented Mar 5, 2024

It works in _input(). But is there a way to have it work in _gui_input?
image

image

image

@Federico-Ciuffardi
Copy link
Owner

Federico-Ciuffardi commented Mar 15, 2024

The change in #42 should allow you to use _gui_input.

Please test it and let me know if:

  • You were able to use _gui_input.
  • You noticed any strange/unexpected behavior.

@nasigu
Copy link

nasigu commented Mar 27, 2024

Seems like change in #42 doesnt work :(
Снимок экрана 2024-03-27 в 23 29 19
I tried Ignore and pass MouseFilter in Control

@imichaelnorris
Copy link

With this change, I was also not able to use _gui_input but gestures are received in _input.

In my project, I have a tree with multiple Control nodes. Grandparent > Parent > Control. Previously I had to set the MouseFilter on all of the ancestors to receive events in a particular node.

I don't need to set the MouseFilter property on the ancestors of the Control node now, the Control is getting gestures from this library.

In addition, _gui_input is also receiving Godot's InputEventScreenTouch events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants