Format

MouseWheel(delta_x,delta_y,location,control,params)

Args

  • delta_x,delta_y: amount of wheel movement
  • location: the turf, stat panel, grid cell, etc. containing the object
  • control: the name of the skin control involved
  • params: other parameters including mouse/keyboard flags, icon offsets, etc.; see mouse handling

This is called when the mouse wheel is moved while over an object.

Positive values of delta_x and delta_y refer to scrolling right or up, respectively. Negative values are left and down, respectively.

Don’t define this unless you need it, because it generates extra communication that is otherwise avoided. Defining it on only the objects that require it reduces overhead.

See also