mouse_calm

Maximum distance in pixels still considered as immobility for mouse_moving (default 3).

Range:

0 .. unlimited (default: 3 )

Type:

var

Example:

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_moving, mouse_time, mouse_left, mouse_middle, mouse_right, mouse_ent, mouse_force