0 votes

When I have a button that is pressed I set the selected event. associated with it. if a different button is pressed, I will swap their positions.

How do I detect a pressed event if it not in a button to cancel the selection?

Godot version 3.2.3 stable
in Engine by (33 points)

1 Answer

0 votes

If the event is not caught by a button, a node with an "unhandled input" function will be able to catch it and cancel the selection. So just make a node with that function.

by (7,839 points)

Thank you! That got me moving in the right direction.

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.