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.
why the cegui mouse cursor move delay
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Hi,
Does the CEGUI cursor catch up with the OS cursor eventually, or is it then permanently offset?
Do you get the same behaviour in both debug and optimised release build configurations?
To be honest, it sounds like a general performance issue; what kind of FPS are you experiencing? If it is a general performance issue, and you're affected when running an optimised build, I'm not sure what to suggest (unless you want to not use the CEGUI cursor, and use the OS cursor instead; since that would work, though you'd need to apply some offsets in windowed mode, if you have such a thing).
CE.
Does the CEGUI cursor catch up with the OS cursor eventually, or is it then permanently offset?
Do you get the same behaviour in both debug and optimised release build configurations?
To be honest, it sounds like a general performance issue; what kind of FPS are you experiencing? If it is a general performance issue, and you're affected when running an optimised build, I'm not sure what to suggest (unless you want to not use the CEGUI cursor, and use the OS cursor instead; since that would work, though you'd need to apply some offsets in windowed mode, if you have such a thing).
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Who is online
Users browsing this forum: No registered users and 20 guests