# MouseWheel proc (atom)

Source: https://ref.dm-lang.org/atom/proc/MouseWheel
Added in BYOND 508.

### 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](https://ref.dm-lang.org/DM/mouse/index.md)


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
- [Click proc (atom)](https://ref.dm-lang.org/atom/proc/Click.md)
- [DblClick proc (atom)](https://ref.dm-lang.org/atom/proc/DblClick.md)
- [MouseDown proc (atom)](https://ref.dm-lang.org/atom/proc/MouseDown.md)
- [MouseDrag proc (atom)](https://ref.dm-lang.org/atom/proc/MouseDrag.md)
- [MouseDrop proc (atom)](https://ref.dm-lang.org/atom/proc/MouseDrop.md)
- [MouseEntered proc (atom)](https://ref.dm-lang.org/atom/proc/MouseEntered.md)
- [MouseExited proc (atom)](https://ref.dm-lang.org/atom/proc/MouseExited.md)
- [MouseMove proc (atom)](https://ref.dm-lang.org/atom/proc/MouseMove.md)
- [MouseUp proc (atom)](https://ref.dm-lang.org/atom/proc/MouseUp.md)
- [MouseWheel proc (client)](https://ref.dm-lang.org/client/proc/MouseWheel.md)
- [mouse_drag_pointer var (atom)](https://ref.dm-lang.org/atom/var/mouse_drag_pointer.md)
- [mouse_drop_pointer var (atom)](https://ref.dm-lang.org/atom/var/mouse_drop_pointer.md)
- [mouse_opacity var (atom)](https://ref.dm-lang.org/atom/var/mouse_opacity.md)
- [mouse_over_pointer var (atom)](https://ref.dm-lang.org/atom/var/mouse_over_pointer.md)
