Hi Stein!
As usual, I refer to GLUT. The glutMouseFunc(...); supplies all =
neccessary info. A link: =
http://ask.ii.uib.no/ebt-bin/nph-dweb/dynaweb/SGI_Developer/OpenGL_PG
Now go to Appendix D, "Handling ... Events". This should be all you =
need (when using glut).
Cheers,
St0fF
----- Original Message -----=20
From: Stein Nyg=E5rd=20
To: dev...@li...=20
Sent: Sunday, September 30, 2001 2:03 PM
Subject: [Dev-C++] Mousestuff
Hi guys!
This is how i get the position of the mouse, in m openGL app. But, I =
forgot how to get info whether or not the two mousebuttons is pressed. =
Can anyone help?
case WM_MOUSEMOVE:
{
mouse.x =3D LOWORD(lParam);=20
mouse.y =3D HIWORD(lParam);
return 0;
}
|