Urho seems to be able to change the mouse cursor but my tries are just crashing. How does it work?
urho3d.github.io/documentation/1 … 1_u_i.html
urho3d.github.io/documentation/1 … ursor.html
//Urho3D::Cursor* cursor=GetSubsystem<Urho3D::UI>()->GetCursor(); // cursor is 0 when trying this
static Urho3D::Cursor* cursor=new Urho3D::Cursor(context_); // doesn't work either, crashes in SetCursor
std::cout<<(size_t)cursor<<std::endl;
if(c==mouse_cursor::beam)
cursor->SetShape(Urho3D::CursorShape::CS_IBEAM);
else
cursor->SetShape(Urho3D::CursorShape::CS_NORMAL);
GetSubsystem<Urho3D::UI>()->SetCursor(cursor); // GetSubsystem<Urho3D::UI>() is non 0 and seems valid.
Neither the samples nor the editor seem to change the cursor anywhere, it it currently possible? System default cursor shapes would be fine.