Hi all!
I new in OIS.
I use Ogre3D and OIS for my program.
I had a few problems with the size of the window in which can move the Mouse.
I read an Tutorial of how you to use OIS and did as it says.
void AppInput::WinResized(Ogre::RenderWindow* mWin)
{
unsigned int width, height, depth;
int top, left;
mWin->getMetrics(width, height, depth, left, top);
const OIS::MouseState &ms = mMouse->getMouseState();
ms.width=width;
ms.height = height;
}
This function is called when the initialization OIS and each resizing window.
If you look at the function to watch the values ms.width and ms.height they are correct, but if you look at the function mouseMoved it seemed to me, they do not show the size of the window, they indicate the position of the mouse.
I am in the debugger manually change the values abX and abY at 800 and 600, respectively, and then the Mouse moved as needed, but how to change them "legal" way, I do not know.
Plz help me.
And sry for my English.