Results 1 to 3 of 3

Thread: OPEN GL mouse probs

  1. #1
    Nit
    Guest

    OPEN GL mouse probs

    How can I get the pixel coordinates of the mouse cursor when it is clicked in an Window?

    the aim here is to draw a pixel where the mouse is clicked on the window.

    I'm using glut library and not MFC wizards pants..

    Many thanks

    Nit

  2. #2
    Zaei
    Guest
    Use the peek message API, and handle WM_MOUSEUP events. You can keep track of where the mouse cursor is on the window by storing mouse coordinates on WM_MOUSEMOVE events (this is how I handle mouse movement in my engine).

    Z.

  3. #3
    Nit
    Guest
    many thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width