Render different mouse cursors based on ImGui::GetMouseCursor()
Closed this issue · 1 comments
pkdawson commented
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?
pkdawson commented
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;