I assume you''re using WinProc?
Try this:
// Mousecase WM_LBUTTONDOWN:{ meGL::mouseL = true; return 0; // Jump Back}case WM_MBUTTONDOWN:{ meGL::mouseM = true; return 0; // Jump Back}case WM_RBUTTONDOWN:{ meGL::mouseR = true; return 0; // Jump Back}case WM_LBUTTONUP:{ meGL::mouseL = false; return 0; // Jump Back}case WM_MBUTTONUP:{ meGL::mouseM = false; return 0; // Jump Back}case WM_RBUTTONUP:{ meGL::mouseR = false; return 0; // Jump Back}case WM_MOUSEMOVE:{ meGL::SetNewMouse((int)LOWORD(lParam), (int)HIWORD(lParam)); return 0;}
With GLuT it''s a simple manner ok registering the right callback -- look in GL/glut.h
- Scott "me22" McMurray
( email/MSN me22@fastmail.ca ICQ 37213887 )