How to use mouse in OpenGL?

Operate in Console.How to use OpenGL command to drive mouse?Do not use MFC.

opengl doesn’t have any functions dealing with mouse or for that matter any input. Because it is a portabel API, meaning you must use something else ex:glut.

You just use the native mouse support in your os (win32 I guess in your case).

Do display anything without using off screen buffers you need a window, use the mouse support you have in that window.

Mikael

you may also use directx (direct input) to work with mouse and keyboard