Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | iarebatman |
I cannot get the Quad/Area to fire the mouse_entered signal when the MOUSE_MODE_CAPTURED option is set, nor the _unhandled_input 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 _unhandled_input 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.