Sign in to follow this  

About mouse sampling

Recommended Posts

I know under the normal situation,the mouse sampling rate is about 30 times /s like the following code: int Game_Init() { ..... Get_Mouse_State(); ..... sleep(30); } so,what if I need to specify another sampling rate?For instance,each time when the player press the mouse's left button do a sampling. Because in Direct input,only after sampling the mouse,you can know whether the player press the left button or not,I don't how can I sampling the mouse only when the player press the mouse,could anyone tell me how to realize this? thanks

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