Well I am using getMousePos() to find the mouse coordinates:
irr::core::vector2di mouse_pos = GUIEngine::EventHandler::get()->getMousePos();
But no matter the case, I am always getting mouse_pos.X and mouse_pos.Y always zero.
Can someone correct my mistake or I am doing it the wrong way.?
Thank You
Nalin
Getting mouse position
Re: Getting mouse position
GUIEngine::EventHandler::get()->getMousePos() is not an Irrlicht function. Unless you show us the code of those functions we can't help you as we simply don't know what they do.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm