Sign in to follow this  
Gagyi

DInput and SetCursorPos behaving weird

Recommended Posts

I have this kind of code in my game loop: DirectInput.Update Setcursorpos(screencenter) Setcursorpos is requried, because the cursor could get to the top-right corner of the screen and if you shoot, you exit. Not good. This looks like a good solution, but on some computers, the mouse doesnt seem to work. Sometimes it stops, laggs a bit, starts moving again and funny stuff like that. Could you tell me, what is the problem with my code? Can I mess around with setcursorpos? Or how can i make a window to cover the whole screen without any problems (like the title bar)?

Share this post


Link to post
Share on other sites
Yes, me too, but the problem is that the mouse occassionally stops working, if I use setcursorpos. It works smoothly without it, but I said why isnt that good.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this