Jump to content
  • Advertisement
Sign in to follow this  

Picking and raw input

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

Found these documents.
Just wondering if I want to do picking. Do I have to use the raw input API at the same time?
http://www.toymaker.info/Games/html/raw_input.html
http://www.toymaker.info/Games/html/picking.html
Thanks
Jack

Share this post


Link to post
Share on other sites
Advertisement
You definitely don't want to use raw input with picking. Raw input isn't at all suited to GUI style mouse input, which is what you'd expect from picking.

Share this post


Link to post
Share on other sites
WM_LBUTTONDOWN or WM_LBUTTONUP is usually the best time. Just make sure you use the mouse position that's passed in the LPARAM and not GetCursorPos() or similar - since the mouse may have moved between the time WM_LBUTTON* was sent and when it was processed by your window procedure.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!