Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kaz

Pages: [1]
1
Window / keep the mouse inside the window [ résolu / solved ]
« on: January 19, 2009, 04:58:22 pm »
Hello,

I started an OpenGL/SFML engine,
http://img259.imageshack.us/my.php?image=enginenl0.jpg
and I actualy working on camera class.
I would like to keep the mouse inside the window to allow
camera to make a full spin when the mouse stay near a border

I try to do that by moving the mouse position
but when the mouse moving very fast it still going out of the window
and when it working normally the mouse shaking so it s not so nice

If someone can give me some suggestion about an other way to process
or what is wrong in my way, I will really appreciate
 
Thanks,
SK


edit : solved
I made a fake mouse cursor when I want it
and the real one stay in the middle of the window
after each move I calculate relative position and replace it in middle :)

Pages: [1]
anything