Jump to content
  • Advertisement
Sign in to follow this  
maheshbinny

OpenGL Mouse Events in OpenGL ES2.0

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

Hi,

I am running OpenGL ES 2.0 in Visual Studio 2008.

Can somebody tell me how to intialize mouse events in OpenGL ES 2.0?

Thanks,
Mahesh

Share this post


Link to post
Share on other sites
Advertisement
The OpenGL ES 2.0 API does not relate to mouse or any other input methods in any way.

If you are doing windows programming, you can react on the events WM_LBUTTONDOWN, WM_LBUTTONUP, WM_MBUTTONDOWN, WM_MBUTTONUP, WM_RBUTTONDOWN, WM_RBUTTONUP, WM_XBUTTONDOWN, WM_XBUTTONUP, WM_MOUSEMOVE in the WndProc of your main window to receive mouse events. See e.g. this page, or this page.

Alternatively, on Windows, one can use Raw Input to read mouse, keyboard and HID devices (joysticks, gamepads, racing wheels) in general.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!