• Advertisement

Archived

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

question about mouse in Jim book

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