View Full Version : Using a Mouse
10-21-2001, 02: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
10-21-2001, 03: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-22-2001, 11:57 PM
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)
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.