View Full Version : Mouse use in OpenGL
I was wondering how to enable the mouse and be able to capture the current x,y coords. Pretty simple I'm sure .. but need some direction of where to look for info. Thanks in advance.
02-12-2001, 04:24 AM
In Windows, you have several options, you can simply use GetCursorPos() to get the mouse position, or you can get the position as part of the parameters of most all of the Window's mouse messages. You'll need to convert the mouse coordinates to client coordinates before they'll be of any use.
You could also use DirectInput to get mouse input (surprisingly easy to do, but be aware that NT 4.0 is not compatible with most versions of DirectX).
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.