How can I get the mouse position relative to a control node?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jujumumu

I have a control node and I want to get the mouse position relative to its position. The control is attached to the player which is constantly moving. How can I do this?

:bust_in_silhouette: Reply From: Adam_S
$YourNode.get_local_mouse_position()