mouse_moving
This variable indicates whether the mouse is moving (1) or has been immobile for ¼ second (0).Range:
0 - Mouse immobile for ¼ second
1 - mouse moved.Type:
flag, read-onlyExample:
var zittern = 10;
function beruhigung()
{
if (mouse_moving) {
zittern = 10;
} else {
zittern -= time_step;
}
}
function zielen()
{
mouse_calm = 10; // 10 Pixels aren't movement!
mouse_time = 16; // Check Movement for one second
while(1)
{
mouse_pos.x = mouse_cursor.x + fcos(total_ticks, zittern);
mouse_pos.y = mouse_cursor.y + fsin(total_ticks, zittern);
beruhigung();
wait(1);
}
}
See also:
mouse_mode, mouse_pos, mouse_map, mouse_spot, mickey, pointer, mouse_range, mouse_calm, mouse_time, mouse_left, mouse_middle, mouse_right, mouse_ent, mouse_force