# MouseUp proc (atom)

Source: https://ref.dm-lang.org/atom/proc/MouseUp

### Format
> `MouseUp(location,control,params)`

### Args
- `location`: the turf, stat panel, grid cell, etc. in which the object was clicked
- `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 a mouse button is released while pointing to this object.

Don't define this unless you need it, because it generates extra communication that is otherwise avoided. Most operations can be done through `Click()`, `DblClick()`, and `MouseDrop()`. The other procedures are simply available for completeness.

> [!note]
> 
> In BYOND 3.5 this procedure took three different arguments: `location`, `icon_x`, and `icon_y`. Since `icon_x` and `icon_y` have been replaced, old code will need to be modified. Games compiled before this change will still work normally.

### 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 (client)](https://ref.dm-lang.org/client/proc/MouseUp.md)
- [MouseWheel proc (atom)](https://ref.dm-lang.org/atom/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_drop_zone var (atom)](https://ref.dm-lang.org/atom/var/mouse_drop_zone.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)
- [show_popup_menus var (client)](https://ref.dm-lang.org/client/var/show_popup_menus.md)
