# MouseCaptureController

> Class that manages capturing mouse events.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.UIElements](/engine/6000.5/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public static class MouseCaptureController
```

## Static Methods

| Method                                                                                                              | Description                                         |
| ------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| [CaptureMouse](/engine/6000.5/script-reference/unityengine/uielements/mousecapturecontroller/capturemouse.md)       | Assigns an event handler to capture mouse events.   |
| [HasMouseCapture](/engine/6000.5/script-reference/unityengine/uielements/mousecapturecontroller/hasmousecapture.md) | Checks if the event handler is capturing the mouse. |
| [IsMouseCaptured](/engine/6000.5/script-reference/unityengine/uielements/mousecapturecontroller/ismousecaptured.md) | Checks if there is a handler capturing the mouse.   |
| [ReleaseMouse](/engine/6000.5/script-reference/unityengine/uielements/mousecapturecontroller/releasemouse.md)       | Stops an event handler from capturing the mouse.    |
