why the cegui mouse cursor move delay
Posted: Thu Feb 05, 2009 02:08
This is my program to make the CEGUI mouse cursor move.
POINT ms;
GetCursorPos(&ms);
CEGUI::Point mousePos = CEGUI::MouseCursor::getSingleto().getPosition();
CEGUI::System::getSingleton().injectMousePosition(ms.x,ms.y);
It works well when there is not 3D Scene or 3D object. But if There is 3D scene. If I move the mouse quickly, the CEGUI mouse cursor is always delay.the position of the CEGUI mouse cursor and the position of the windows mouse cursor is different. and CEGUI mouse cursor is follow the windows mouse cursor.
POINT ms;
GetCursorPos(&ms);
CEGUI::Point mousePos = CEGUI::MouseCursor::getSingleto().getPosition();
CEGUI::System::getSingleton().injectMousePosition(ms.x,ms.y);
It works well when there is not 3D Scene or 3D object. But if There is 3D scene. If I move the mouse quickly, the CEGUI mouse cursor is always delay.the position of the CEGUI mouse cursor and the position of the windows mouse cursor is different. and CEGUI mouse cursor is follow the windows mouse cursor.