# Sandbox.WebSurface.TellMouseButton

```csharp
void TellMouseButton(MouseButtons button, bool state)
```

Tell the browser a mouse button has been pressed

### Parameters

- `button` (`MouseButtons`)
- `state` (`bool`)

Declared in [Sandbox.WebSurface](/api/Sandbox.WebSurface).
Assembly: `Sandbox.Engine`.
