pkdawson/imgui-godot

Render different mouse cursors based on ImGui::GetMouseCursor()

Closed this issue · 1 comments

Not obvious how to do this correctly. Viewport::_gui_input_event seems responsible for updating the mouse cursor. OS::set_cursor_shape is not available from scripts. Generate fake input events to update the cursor?

Seems more complicated than it's worth. Closing for now.

If you really want the appropriate mouse cursors drawn, just let ImGui do it:

Input.SetMouseMode(Input.MouseMode.Hidden);
ImGui.GetIO().MouseDrawCursor = true;