Sign in to follow this  

Get synchronization!

This topic is 4376 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Well you need to transform the mouse movement in screen coordinates.
If you want to use Win32Api you should catch the WM_MOUSEMOVE message in the WndProc function. Your code should look like this:
case WM_MOUSEMOVE:
{
xmouse = LOWORD(lParam);
ymouse = HIWORD(lParam);
}

If you want to use DirectInput, there is a tutorial on this on 32Bits site.

Share this post


Link to post
Share on other sites
Quote:
Original post by leonlylin
this method i have tried.but they are still not synchronization.


What do you mean when you say there is no sincronization?
Could you provide more details?

Share this post


Link to post
Share on other sites
What he means is, at least by my understanding as I had this problem, is when you use a textured cursor in DirectX and rely on Windows to tell you when the mouse is moved, there is a smooth delay in when your program updates the position of the cursor texture on the screen.

So, following the steps

1. User Moves Mouse
2. Shortly after (not instantly), the mouse will move on the screen.

It's an annoying little thing. I never did solve it.

Share this post


Link to post
Share on other sites

This topic is 4376 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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