0 votes

I cannot get the Quad/Area to fire the mouseentered signal when the MOUSEMODECAPTURED option is set, nor the _unhandledinput callback for mouse movement & clicks.. I realize the mouse is snapped to the 'center' of the screen when this happens, so I've added a simple 'crosshair' at the very center of the screen so I know where the cursor is.

Based on the fact that this isn't working how I expected, I'm assuming I have to do something like raycast on every process callback to keep track of whether or not the mouse has entered the 'Area' and explicitly fire the event myself? Since _unhandledinput isn't being called - should I simply change that to _input?

Does anyone have an example of the correct way to handle this situation? I'm afraid that adding a raycast on every frame would be a super inefficient way to handle this, so I'm trying to avoid doing that if possible.

in Engine by (12 points)

Please log in or register to answer this question.

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.