# GetButtonDown(string)

> Interface to Input.GetButtonDown. 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 GetButtonDown(string buttonName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Button name to get

### Returns

| Type                                                          | Description                                                                                      |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true during the frame the user pressed down the virtual button identified by buttonName. |
