Results 1 to 5 of 5

Thread: glut: mouse setcursor() ?

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2002
    Location
    Stuttgart, Germany
    Posts
    27

    glut: mouse setcursor() ?

    hi!

    i am using my mouse to rotate my scene-camera. it works fine, i have registered a function with glutMotionFunc().

    but unfortunately, when my cursor runs out of the window, my camera rotation comes to an end.
    is there a possibility, in a "win32 CONSOLE appilcation" to set the mouse cursor back to the middle of the window?

    if anybody could give me a hint or two, i could reset the cursor after every movement and everything would be perfect ...

    i would be very thankful for help


    )
    sebastian

  2. #2
    Senior Member Regular Contributor
    Join Date
    May 2002
    Location
    York, UK
    Posts
    128

    Re: glut: mouse setcursor() ?

    Hi,

    You probably need ...

    glutWarpPointer(int x, int y)

    enjoy!

    Rob.

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2002
    Location
    Stuttgart, Germany
    Posts
    27

    Re: glut: mouse setcursor() ?

    oh man, THANK YOU very much.
    i havent found a good list of all glut-features and -functions yet ...

    where from do you have this wisdom?


    )
    seb

  4. #4
    Senior Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    653

    Re: glut: mouse setcursor() ?

    Have a look at the documentation in the SDK.

  5. #5
    Senior Member Regular Contributor
    Join Date
    Mar 2001
    Posts
    184

    Re: glut: mouse setcursor() ?

    and look at glut.h

Similar Threads

  1. mouse navigation in GLUT
    By che in forum OpenGL: General
    Replies: 1
    Last Post: 12-11-2003, 12:58 PM
  2. glut,fs,mouse look
    By Sobo in forum OpenGL: Linux
    Replies: 2
    Last Post: 04-01-2003, 12:57 PM
  3. GLUT + Mouse
    By in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 12-05-2002, 10:43 AM
  4. Get mouse cursor with GLUT
    By fcoutel in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-07-2002, 08:46 AM
  5. Mouse help in GLUT
    By ajrosen in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-13-2001, 08:20 PM

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