View Full Version : how to enable mouse support in glut
01-02-2001, 09:33 AM
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..... http://www.opengl.org/discussion_boards/ubb/frown.gif
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
01-02-2001, 08:56 PM
I was asking C++ specific solution. What i understand from your help is a windowing system which i am not using...
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.