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 3 of 3

Thread: how to enable mouse support in glut

  1. #1
    Intern Newbie
    Join Date
    May 2001
    Location
    Toronto, ON, Canada
    Posts
    30

    how to enable mouse support in glut

    How can i use mouse in glut to enable my 3d engine to rotate as mouse moves...because when mouse reaches the end of he screen it stops and i can not rotate any more.....

  2. #2
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Jul 2000
    Location
    S41.16.25 E173.16.21
    Posts
    2,609

    Re: how to enable mouse support in glut

    just move the cursor back into the center of the screen after every time its moved. (check the help for the command) IIRC warppointer.
    newcursorX - centerscreenX = X differnce moved.
    also do 4 Y
    move cursor to the center again

  3. #3
    Intern Newbie
    Join Date
    May 2001
    Location
    Toronto, ON, Canada
    Posts
    30

    Re: how to enable mouse support in glut

    I was asking C++ specific solution. What i understand from your help is a windowing system which i am not using...

Posting Permissions

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