Mouse cursor in grabbed mode

Started by g4m0r, July 31, 2011, 18:20:34

Previous topic - Next topic

g4m0r

Hello,

I have a problem:
I have a first person camera coded.
I want to have a cursor in the middle of the screen.

I have the setGrabbed(true), to get the mouse delta's (getDX(), getDY() ).
When I do setGrabbed(false), I do not get mouse delta's....

How can I fix that problem??
And how Can I then avoid the cursor flickering when I set the cursor every time to the screen middle position?


CodeBunny

One thing to recommend:

Use a texture for the aiming reticule, not the mouse cursor! You won't get the jumpy behavior of the mouse, and since you can simply have the aiming mark be a textured quad, you have much more control over how it's rendered. Plus, you do not have size restrictions.

g4m0r

Hi,

ok, thanks for your recommendation.

regards,
g4m0r