if you call it in a while loop, this is not working ^^

my idea:
Code:
var setcursor = 1;

...

while(1)
{
  if(setcursor == 1)
  {
    vec_set(mouse_cursor, vector(0,0,0));
    vec_set(mouse_pos, mouse_cursor);
    setcursor = 0;
  }  
  else
  {
    vec_set(mouse_pos, mouse_cursor);
  }
  wait(1);
}


(not tested)

just set setcursor to 1 for centering the mouse.

Last edited by Espér; 07/07/09 16:21.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<