# MouseUp proc (client)

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

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

### Args
- `object`: the object under the mouse pointer
- `location`: the turf, stat panel, grid cell, etc. containing the object where it 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)


### Default action
> Call object.MouseUp(location,control,params).

This is called when a mouse button is released while pointing to an 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.

The argument format for this verb is:

```dm /MouseUp/
MouseUp(object as null|atom in usr.client,\
        location as null|turf|text in usr.client,\
        control as text, params as text)
```

> [!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 (client)](https://ref.dm-lang.org/client/proc/Click.md)
- [DblClick proc (client)](https://ref.dm-lang.org/client/proc/DblClick.md)
- [MouseDown proc (client)](https://ref.dm-lang.org/client/proc/MouseDown.md)
- [MouseDrag proc (client)](https://ref.dm-lang.org/client/proc/MouseDrag.md)
- [MouseDrop proc (client)](https://ref.dm-lang.org/client/proc/MouseDrop.md)
- [MouseEntered proc (client)](https://ref.dm-lang.org/client/proc/MouseEntered.md)
- [MouseExited proc (client)](https://ref.dm-lang.org/client/proc/MouseExited.md)
- [MouseMove proc (client)](https://ref.dm-lang.org/client/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_opacity var (atom)](https://ref.dm-lang.org/atom/var/mouse_opacity.md)
- [mouse_pointer_icon var (client)](https://ref.dm-lang.org/client/var/mouse_pointer_icon.md)
- [show_popup_menus var (client)](https://ref.dm-lang.org/client/var/show_popup_menus.md)
