Jump to content
  • Advertisement

Archived

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

-Aspirin-

question about mouse in Jim book

This topic is 5276 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 try to seach previous topics in the forum but it can''t help me.. i create full screen application with z-buffer in 3d coordinate and load mesh on screen.My application purpose is when i clicked mouse on screen mesh will appear where i was clicked. Problem is mesh doesn''t go exactly where my mouse was clicked. How can i cure it??? thanks for every answer to my question. Here is a bit of code where i use to position mesh mouse.Read(); if(mouse.GetButtonState(MOUSE_LBUTTON) == TRUE ) { mouse.Read x=mouse.GetXPos(); y=mouse.GetYPos(); mesh.Move(x,y,0.0f); mesh.Update(); }

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!