View Full Version : Using a Mouse

10-21-2001, 03:20 PM
Hi I want to incorporate a mouse into my programs is there a simple way of doing this?

Is there any examples anywhere?

Thanks alot http://www.opengl.org/discussion_boards/ubb/smile.gif

Screaming Lunatic
10-21-2001, 04:27 PM
You have a few options. If you are using GLUT, it supports stuff with the mouse.

If you are coding in a Windows environment, you could handle the WM_MOUSEMOVE message along with its other variants. Or you could use DirectInput from DirectX.

Not sure what your options would be for Linux , Mac, or other platforms.


10-23-2001, 12:57 AM
yes, there is a way to do it without glut or directx. In the nehe tutorials is an easy way to do this with the Win API!

(it's the tutorial with direct input i think)