Skip to main content
gamedev.net
🔒 Locked

mouse

Started by programmer_247 Mar 6, 2007 at 5:28 PM 1 replies 1k views
Original Post
programmer_247
programmer_247
Is there a way to get and change the mouse coordinates and test for clicks using OpenGL? If not, is there a way in c or c++?
jouley
jouley
The mouse is very OS dependent, but assuming windows, here is a decent tutorial on picking, which handles getting mouse coordinates, clicking, and testing for something being clicked (picking). Note that there are other was to pick objects using ray casting and collision detection, but this should get you started with mouse basics.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.