# GetButton(string)

> Returns the binary value of a button.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.ClusterInputModule

> **Warning:**
>
> **Deprecated.** This type is deprecated and will be removed in a future release.

```csharp
public static bool GetButton(string name)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of input to poll.

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

True for pressed, false otherwise.
