mouse_entered and mouse_left not firing during MOUSE_MODE_CAPTURED?

Godot Version

4.3 (STABLE)

Question

Hello there! I’m currently making a first person game, so I set the Input.mouse_mode to MOUSE_MODE_CAPTURED so that it can’t go off the screen or get in the way.

Problem is that I want to use the signals mouse_entered() and mouse_exited() for text that appears when you look at an object. These events are not firing at all when I use this mode. The mouse is either not in the centre or the events are disabled in this mode.
When I change the mouse_mode to anything else, the events fire normally. (All it does right now is print something when the signal goes through)

Is this intentional? If so, how can I get around it? Do I have to make a raycasting system instead?

Thank you.

I’ve made sure that no other GUI’s are stealing the focus (everything except the object is set to PASS when interacting with the mouse).

AFAIK, this is working as intended. Just put a raycast on your player or the center of the camera to trigger them.