Mouse shape doesn't change if moved with warp_cursor

Godot Version

v4.3.stable.mono.official [77dcf97d8]

Question

Hello, I’m new to Godot and building a simple UI that takes mouse position and left button click data from an external python process. The python process send mouse absolute posion and left button press/release via UDP to the Godot.

Currently I can correctly receive these data in godot and the cursor do moves correctly by Input.warp_cursor, however, when the cursor moves on a button, the shape of the button doesn’t change to the Pointint Hand, although I do set the Default Cursor Shape in the inspector of the button:

The cursor can change to the desired one if I move it by moving the physical mouse.

Are there anything I missed? Please help, thank you.

It is verly likely that this is a bug. There are also other situations, where the mouse cursor is not updated. Feel free to open a bug report about this on the github issue tracker.

p.s.: you probably mean Input.warp_mouse

Thank you, I just found I have to send InputEventMouseMotion event which can trigger the mouse shape update.