Results 1 to 3 of 3

Thread: Using a Mouse

  1. #1
    Newbie Newbie
    Join Date
    Oct 2001

    Using a Mouse

    Hi I want to incorporate a mouse into my programs is there a simple way of doing this?

    Is there any examples anywhere?

    Thanks alot

  2. #2
    Junior Member Newbie
    Join Date
    Mar 2000

    Re: Using a Mouse

    You have a few options. If you are using GLUT, it supports stuff with the mouse.

    If you are coding in a Windows environment, you could handle the WM_MOUSEMOVE message along with its other variants. Or you could use DirectInput from DirectX.

    Not sure what your options would be for Linux , Mac, or other platforms.


  3. #3
    Member Contributor
    Join Date
    Aug 2001
    doesnt matter

    Re: Using a Mouse

    yes, there is a way to do it without glut or directx. In the nehe tutorials is an easy way to do this with the Win API!

    (it's the tutorial with direct input i think)
    Beginners First [img]/forum/images/%%GRAEMLIN_URL%%/wink.gif[/img]
    OpenGL tuts soon at

Similar Threads

  1. Right mouse Button and Mouse Movement for Zoom?
    By GrimmBro in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 02-20-2011, 04:45 AM
  2. mouse speed between sampled mouse input points
    By sunnymonk in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 02-06-2005, 09:43 AM
  3. rotate on mouse click and drag in the direction of the mouse cursor
    By vamsee kanth in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 01-02-2005, 09:54 PM
  4. Replies: 2
    Last Post: 11-14-2000, 03:57 PM
  5. 2d mouse,3d object, how do I tell mouse is over it
    By Schlogenburg in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 06-18-2000, 11:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean