Thanks for help in advanced

Moderators: CEGUI MVP, CEGUI Team
Rackle wrote:When you inject mouse movement you can multiply by a value. Me I like to multiply by 1.75:
injectMouseMove(arg.state.X.rel * 1.75, arg.state.Y.rel * 1.75)
A better approach would be to use a variable, with a user interface component to allow users to specify their own multiplicator.
Rackle wrote:Is your UpdateCEGUISize() function called every frame or only when the display window is resized? My guess is that you are not injecting the mouse movement every time the mouse is moved. Also, multiplying by 0.5 would reduce the speed at which the mouse moves by half, and multiplying by 1.5 would double its speed.
Das Gurke wrote:What about CEGUI::System::setMouseMoveScaling ? Wouldn't that be the far easiest method?
Das Gurke wrote:1) Stupid Question, but: Does your mouse move at all? (Just to make sure)
Das Gurke wrote:2) Have you tried some "crazy" values like 200 or 0.00001f?
Rackle wrote:You need to post some more code...
Rackle wrote:You need to supply absolute mouse position or relative mouse movement, but not both. Unfortunately the code for the relative mouse position, the call to the injectMouseMove() function, is incorrect since you are passing absolute positions.
case N_INPUT_MOUSE_MOVE:
CEGUI::System::getSingleton().injectMousePosition(static_cast<float>(pEvent->GetAbsXPos()), static_cast<float>(pEvent->GetAbsYPos()));
CEGUI::System::getSingleton().injectMouseMove(pEvent->GetAbsXPos() * 0.1f, pEvent->GetAbsYPos() * 0.1f);
break;
Users browsing this forum: No registered users and 19 guests