# Sandbox.Input.GetButtonOrigin

## Overload 1

```csharp
static string GetButtonOrigin(string name, bool ignoreController = False)
```

Returns the name of a key bound to this InputAction
For example:

```csharp
Input.GetButtonOrigin( "Undo" )
```


could return `SPACE` if using keyboard or `A Button` when using a controller.

### Parameters

- `name` (`string`)
- `ignoreController` (`bool`), default `False`

### Returns

`string`

## Overload 2

```csharp
static string GetButtonOrigin(InputAnalog analog)
```

Returns the name of the analog axis bound to this [Sandbox.InputAnalog](/api/Sandbox.InputAnalog).
For example:

```csharp
Input.GetButtonOrigin( InputAnalog.Move )
```


could return `Left Joystick`

### Parameters

- `analog` (`InputAnalog`)

### Returns

`string`

Declared in [Sandbox.Input](/api/Sandbox.Input).
Assembly: `Sandbox.Engine`.
