# GetMouseButtonUp(int)

> Interface to Input.GetMouseButtonUp. Can be overridden to provide custom input instead of using the Input class.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.3/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

> **Warning:**
>
> **Deprecated.** EventSystem no longer supports input override for legacy input. Install Input System package for full input binding functionality.

```csharp
public virtual bool GetMouseButtonUp(int button)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The button id. Values are 0 for left button, 1 for right button, 2 for the middle button.

### Returns

| Type                                                          | Description                                                             |
| ------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true during the frame the user releases the given mouse button. |
