function mouse_toggle() // switches the mouse on and off { mouse_map = arrow; // use arrow as mouse pointer if (mouse_mode >= 2) { // was it already on? mouse_mode = 0; } else { mouse_mode = 2; } while (mouse_mode > 0) // move it over the screen { vec_set(mouse_pos,mouse_cursor); wait(1); } }
//i dont know if it will help your code...but im just giving you a logic to construct it...just try...