• Advertisement
Sign in to follow this  

About mouse sampling

This topic is 4329 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

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
Advertisement
Sign in to follow this  

  • Advertisement