|
发表于 2011-12-29 15:13:00
|
显示全部楼层
Re:MFC与Ogre结合中出现的鼠标问题
默认就是50
unsigned int width, height, depth;
int left, top;
//OIS默认宽和高是50px啊,来设置成RenderWindow的宽高即可
rw->getMetrics(width, height, depth, left, top);//得到窗口的实际大小
//可以用这个值传给AVI了,或者是从文件中读
const OIS::MouseState &ms = mMouse->getMouseState();
//const OIS::MouseState &ms = /*mMouse*/this->mMouse->getMouseState();
ms.width = width;
ms.height = height; |
|