# Sandbox.Mapping.Button.OnPressed

```csharp
Doo OnPressed { get; set; }
```

Called when the button is pressed. Receives the GameObject that pressed it.

Declared in [Sandbox.Mapping.Button](/api/Sandbox.Mapping.Button).
Assembly: `Sandbox.Engine`.
