Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Hellhound

Mouse movement breakdown

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

Hi, i''ve implemented in my 3d environment a WIN32 API mouse controll for movement (wheel) and look around (hold Right button)... It works, but sometimes the movement breakdown. I''ve never problem by moving backwards, but sometimes when i use the wheel to move forwards, the scene holds for a second, before continuing movement. I don''t know why ?!... Could be there a buffer which holds some old datas ??? To realize the look-around i''ve implemented a thread which calls the lookArround-function until the button is released. It works too, but in the first few moments, the movement is very slow. After some seconds i''ve the full speed! Knows anyone why? I think there could be a breakdown by initializing the thread ??? Thanks 4 any help, Christian

Share this post


Link to post
Share on other sites
Advertisement
Is this a fullscreen app and are you using the Win32 messaging system (WM_MOUSEMOVE, etc.)? If so, the windows message pump is not really meant for fullscreen games. I''d recommend using DirectInput or some other means of low level input detection.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!