mouse_pos
The x and y compontents of this vector give the horizontal
and vertical position of the mouse pointer in pixels,
relative to the upper left corner of the screen resp. the engine window's client area.
If the mouse pointer is switched on through mouse_mode,
it can be moved over the screen by changing these variables.
Range:
0 .. screen_size
Type:
VECTOR
Example:
BMAP* arrow = "arrow.pcx";
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);
}
}
See also:
mouse_mode, mouse_map, mouse_spot, mickey, mouse_cursor, mouse_range, mouse_moving, mouse_calm, mouse_time, mouse_left, mouse_ent, mouse_force,
mouse_dir3d
► latest
version online