PDA

View Full Version : Mouse Pointer - GLUT



Zeus_666
06-18-2001, 04:29 AM
Hi,
I have built my first map at long last, took a while, but now i have some questions about the mouse.

How do i keep the mouse dead centre screen?
How do i change the mouse icon?
How do i get the mouse co-ordinates?

Thanks for the help.

Paul

dUckmAnn
06-26-2001, 01:29 AM
Originally posted by Zeus_666:
Hi,
I have built my first map at long last, took a while, but now i have some questions about the mouse.

How do i keep the mouse dead centre screen?
How do i change the mouse icon?
How do i get the mouse co-ordinates?

Thanks for the help.

Paul

1. glutWarpPointer(int x, int y)
2. glutSetCursor
3. check glutMouseFunc, glutMotionFunc, glutPassiveMotionFunc

Carl

grady
06-26-2001, 06:28 AM
Some of the glut input functions cause errors on my computer, I don't know why. Here are the winders functions. These work in VC++; I'm not sure about any other compiler.

1. SetCursor(x, y);
2. ???
3.

POINT mpos;
GetCursorPos(&mpos);
x = mpos.x;
y = mpos.y;


[This message has been edited by grady (edited 06-26-2001).]