getmouseposition

nevarim

22-03-2014 14:52:56

hi all

anybody know how to use getmouseposition in mygui to substitute getposition of CEGUI i intermediate tutorial 2?

here is codde with cegui where i have code where i use cegui to have a position with a x and a y on screen
CEGUI::Point mousePos = CEGUI::MouseCursor::getSingleton().getPosition();
Ogre::Ray mouseRay = mCamera->getCameraToViewportRay(mousePos.d_x/float(arg.state.width), mousePos.d_y/float(arg.state.height));


how can i do for to use getmousepositionwith mygui?
http://mygui.info/docs/class_my_g_u_i_1 ... d8e328e6fd
im having some problems:

im trying to use this
const MyGUI::IntPoint mousePos = MyGUI::InputManager::getMousePosition();

thanks

Neva

scrawl

23-03-2014 19:57:55

const MyGUI::IntPoint mousePos = MyGUI::InputManager::getInstance().getMousePosition();