Mouse Pointer - GLUT

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

Originally posted by Zeus_666:
[b]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[/b]

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

Carl

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. ???
POINT mpos;
GetCursorPos(&mpos);
x = mpos.x;
y = mpos.y;

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