From: St0fF 6. <st...@gm...> - 2001-09-30 14:27:33
|
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; } |