# GvrPointerEventDataExtension Class Reference

# GvrPointerEventDataExtension

This class extends the Unity `PointerEventData` struct with [GoogleVR](https://developers.google.com/vr/reference/unity/namespace/GoogleVR#namespaceGoogleVR) data accessors.

## Summary

| ### Public static functions ||
|---|---|
| `https://developers.google.com/vr/reference/unity/class/GvrPointerEventDataExtension#classGvrPointerEventDataExtension_1aa1058b922f5b80eb5b68c5305a2efc1b(this PointerEventData pointerEventData)` | `GvrControllerButton` Returns the `GvrControllerButton` mask of buttons that went down to trigger the event. |
| `https://developers.google.com/vr/reference/unity/class/GvrPointerEventDataExtension#classGvrPointerEventDataExtension_1a67bc27f9a436d9310ee2dc1931680e56(this PointerEventData pointerEventData)` | `https://developers.google.com/vr/reference/unity/class/GvrControllerInputDevice#classGvrControllerInputDevice` Returns the `https://developers.google.com/vr/reference/unity/class/GvrControllerInputDevice#classGvrControllerInputDevice` that triggered the event. |

## Public static functions

### GvrGetButtonsDown

```c#
GvrControllerButton GvrGetButtonsDown(
  this PointerEventData pointerEventData
)
```
Returns the `GvrControllerButton` mask of buttons that went down to trigger the event.

<br />

| Details ||
|---|---|
| Parameters | |---|---| | `pointerEventData` | Pointer event data. | |
| **Returns** | The `GvrControllerButton` mask of buttons that went down to trigger the event. |

### GvrGetControllerInputDevice

```c#
GvrControllerInputDevice GvrGetControllerInputDevice(
  this PointerEventData pointerEventData
)
```
Returns the `https://developers.google.com/vr/reference/unity/class/GvrControllerInputDevice#classGvrControllerInputDevice` that triggered the event.

<br />

| Details ||
|---|---|
| Parameters | |---|---| | `pointerEventData` | Pointer event data. | |
| **Returns** | The get controller input device. |