I want to set mouse position with a floating point value (range from 0 to 1) but i couldn't, MyGui only supports INT value,
How can i do with other way ?
const MyGUI::IntSize& view_size = MyGUI::Gui::getInstance().getViewSize();
float x_rel = 0.5;
int x = (int)((float)view_size.width * x_rel);
Ha ha, thank you so much !
BTW: I suggest a function, such as, MyGui::InputManager::getInstancePtr()->setMousePosition(Real x, Real y);
I would agree, except that apparently MyGUI uses this internally as (int, int) for mouse position anyhow. Wouldn't hurt to have a utility function, but its such a minor issue I would certainly not complain should the MyGUI team decide not to implement it.