Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: MouseMotion x, y coordinates?

  1. #1
    Guest

    MouseMotion x, y coordinates?

    I am currently trying to write a program that will move the camera based on how you move the mouse the problem is the mouse coordinates never seem to change. I've checked this by adding a print statement in my mouseMotion function and x always prints the same and my image only moves down no matter how you move the mouse. I checked for latest dlls and libs and everything seems updated? anyone have any ideas?

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Jan 2003
    Location
    Virginia
    Posts
    601

    Re: MouseMotion x, y coordinates?

    What platform (OS) are you using, and what function are you using to retrieve the mouse coordinates from the system? And, if your function is self-written, you may want to include that also.

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2003
    Posts
    3

    Re: MouseMotion x, y coordinates?

    Well, acctualy instead of getting the mouse coordinates, just get the mickeys (don't know how to do that. just use a library of some sort like Allegro). Mickeys are the change of the mouse position.
    But realy post the library and/or your code.

    [This message has been edited by TBoNe (edited 02-14-2003).]
    ph33l th3 l0v3

  4. #4
    Guest

    Re: MouseMotion x, y coordinates?

    I've run this code on both AIX and WinXp the Function I'm attempting to use is glutMotionFunc and/or glutMouseFunc. I would like to stay away from OS based mouse coordinate functions if possible.

  5. #5
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,096

    Re: MouseMotion x, y coordinates?

    glutMouseFunc is only called when a mouse button is pressed.

    glutMotionFunc should give you an update when the mouse is inside the window.

    would have to see more of your code if that is not the problem.

    Originally posted by Duf82:
    I've run this code on both AIX and WinXp the Function I'm attempting to use is glutMotionFunc and/or glutMouseFunc. I would like to stay away from OS based mouse coordinate functions if possible.

Posting Permissions

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