# GvrPointerInputModuleImpl Class Reference

# GvrPointerInputModuleImpl

Implementation of `https://developers.google.com/vr/reference/unity/class/GvrPointerInputModule#classGvrPointerInputModule`.

## Summary

| ### Properties ||
|---|---|
| `https://developers.google.com/vr/reference/unity/class/GvrPointerInputModuleImpl#classGvrPointerInputModuleImpl_1a3292937485369a38991dee424440beff` | `https://developers.google.com/vr/reference/unity/class/GvrPointerEventData#classGvrPointerEventData` Gets `PointerEventData` from the most recent frame. |
| `https://developers.google.com/vr/reference/unity/class/GvrPointerInputModuleImpl#classGvrPointerInputModuleImpl_1a33ae1b0112b23239b7ab23536662d53d` | `https://developers.google.com/vr/reference/unity/interface/IGvrEventExecutor#interfaceIGvrEventExecutor` Gets or sets an interface for executing events. |
| `https://developers.google.com/vr/reference/unity/class/GvrPointerInputModuleImpl#classGvrPointerInputModuleImpl_1a85e53feae1e646786984a03af75bfb82` | `https://developers.google.com/vr/reference/unity/interface/IGvrInputModuleController#interfaceIGvrInputModuleController` Gets or sets an interface for controlling the actual input module. |
| `https://developers.google.com/vr/reference/unity/class/GvrPointerInputModuleImpl#classGvrPointerInputModuleImpl_1a2c4599f089cd121238d9601603c883ad` | `https://developers.google.com/vr/reference/unity/class/GvrBasePointer#classGvrBasePointer` Gets or sets the `https://developers.google.com/vr/reference/unity/class/GvrBasePointer#classGvrBasePointer` which will be responding to pointer events. |
| `https://developers.google.com/vr/reference/unity/class/GvrPointerInputModuleImpl#classGvrPointerInputModuleImpl_1af4e33788b79ac4554dda5e6a2e1f1f1f` | `https://developers.google.com/vr/reference/unity/class/GvrPointerScrollInput#classGvrPointerScrollInput` Gets or sets the `https://developers.google.com/vr/reference/unity/class/GvrPointerScrollInput#classGvrPointerScrollInput` used to route Scroll events through `EventSystem`. |
| `https://developers.google.com/vr/reference/unity/class/GvrPointerInputModuleImpl#classGvrPointerInputModuleImpl_1a1240d57d7b2311de395ab40aae68e618` | `bool` Gets or sets a value indicating whether the pointer input is active in VR Mode only or whether it is always active. |

| ### Public functions ||
|---|---|
| `https://developers.google.com/vr/reference/unity/class/GvrPointerInputModuleImpl#classGvrPointerInputModuleImpl_1a9a171e6d259719d99abb7a10b6a136c3()` | `void` Deactivates this input module. |
| `https://developers.google.com/vr/reference/unity/class/GvrPointerInputModuleImpl#classGvrPointerInputModuleImpl_1a28255b2ffb178da2b12168f0e212d9d6(int pointerId)` | `bool` Determines whether the pointer is over a game object. |
| `https://developers.google.com/vr/reference/unity/class/GvrPointerInputModuleImpl#classGvrPointerInputModuleImpl_1a1c4c073a20812d7a9a90e300d9936d05()` | `void` Process the input for the current frame. |
| `https://developers.google.com/vr/reference/unity/class/GvrPointerInputModuleImpl#classGvrPointerInputModuleImpl_1ae69c7b687418358fd55d2323258acab7()` | `bool` Gets or sets a value indicating whether this module should be activated. |

## Properties

### CurrentEventData

```c#
GvrPointerEventData CurrentEventData
```
Gets `PointerEventData` from the most recent frame.

The `PointerEventData` data from the most recent frame.

### EventExecutor

```c#
IGvrEventExecutor EventExecutor
```
Gets or sets an interface for executing events.

An event executor interface for executing events.

### ModuleController

```c#
IGvrInputModuleController ModuleController
```
Gets or sets an interface for controlling the actual input module.

The module controller interface for controlling the input module.

### Pointer

```c#
GvrBasePointer Pointer
```
Gets or sets the `https://developers.google.com/vr/reference/unity/class/GvrBasePointer#classGvrBasePointer` which will be responding to pointer events.

The `https://developers.google.com/vr/reference/unity/class/GvrBasePointer#classGvrBasePointer` which will be responding to pointer events.

### ScrollInput

```c#
GvrPointerScrollInput ScrollInput
```
Gets or sets the `https://developers.google.com/vr/reference/unity/class/GvrPointerScrollInput#classGvrPointerScrollInput` used to route Scroll events through `EventSystem`.

The [GvrPointerScrollInput](https://developers.google.com/vr/reference/unity/class/GvrPointerScrollInput#classGvrPointerScrollInput) used to route Scroll events through `EventSystem`.

### VrModeOnly

```c#
bool VrModeOnly
```
Gets or sets a value indicating whether the pointer input is active in VR Mode only or whether it is always active.

Set to false if you plan to use direct screen taps or other input when not in VR Mode.

Set this to `true` to make input active only in VR Mode. Set to `false` to make input active all of the time.

## Public functions

### DeactivateModule

```c#
void DeactivateModule()
```
Deactivates this input module.

### IsPointerOverGameObject

```c#
bool IsPointerOverGameObject(
  int pointerId
)
```
Determines whether the pointer is over a game object.

<br />

| Details ||
|---|---|
| Parameters | |---|---| | `pointerId` | The pointer id to check. | |
| **Returns** | Returns `true` if this instance is pointer over game object the specified `pointerId`. Returns `false` otherwise. |

### Process

```c#
void Process()
```
Process the input for the current frame.

### ShouldActivateModule

```c#
bool ShouldActivateModule()
```
Gets or sets a value indicating whether this module should be activated.

<br />

| Details ||
|---|---|
| **Returns** | Returns `true` if this module should be activated, `false` otherwise. |