# InputEvent.Pointer

Artifact: [androidx.xr.scenecore:scenecore](https://developer.android.com/jetpack/androidx/releases/xr-scenecore) [View Source](https://cs.android.com/search?q=file:androidx/xr/scenecore/InputEvent.kt+class:androidx.xr.scenecore.InputEvent.Pointer) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

*** ** * ** ***


```
public final class InputEvent.Pointer
```

<br />

*** ** * ** ***

Specifies the pointer type (e.g. left, right or default) of the input event.

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/InputEvent.Pointer` | `https://developer.android.com/reference/androidx/xr/scenecore/InputEvent.Pointer#DEFAULT()` Default pointer type for the source (no handedness). |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/InputEvent.Pointer` | `https://developer.android.com/reference/androidx/xr/scenecore/InputEvent.Pointer#LEFT()` Left hand / controller pointer. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/InputEvent.Pointer` | `https://developer.android.com/reference/androidx/xr/scenecore/InputEvent.Pointer#RIGHT()` Right hand / controller pointer. |

| ### Public methods |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/scenecore/InputEvent.Pointer#toString()()` |

## Public fields

### DEFAULT

```
public static final @NonNull InputEvent.Pointer DEFAULT
```

Default pointer type for the source (no handedness). Occurs for `https://developer.android.com/reference/androidx/xr/scenecore/InputEvent.Source#UNKNOWN()`, `https://developer.android.com/reference/androidx/xr/scenecore/InputEvent.Source#HEAD()`, `https://developer.android.com/reference/androidx/xr/scenecore/InputEvent.Source#MOUSE()`, and `https://developer.android.com/reference/androidx/xr/scenecore/InputEvent.Source#GAZE_AND_GESTURE()`.

### LEFT

```
public static final @NonNull InputEvent.Pointer LEFT
```

Left hand / controller pointer. Occurs for `https://developer.android.com/reference/androidx/xr/scenecore/InputEvent.Source#CONTROLLER()`, `https://developer.android.com/reference/androidx/xr/scenecore/InputEvent.Source#HANDS()`, and `https://developer.android.com/reference/androidx/xr/scenecore/InputEvent.Source#GAZE_AND_GESTURE()`.

### RIGHT

```
public static final @NonNull InputEvent.Pointer RIGHT
```

Right hand / controller pointer. Occurs for `https://developer.android.com/reference/androidx/xr/scenecore/InputEvent.Source#CONTROLLER()`, `https://developer.android.com/reference/androidx/xr/scenecore/InputEvent.Source#HANDS()`, and `https://developer.android.com/reference/androidx/xr/scenecore/InputEvent.Source#GAZE_AND_GESTURE()`.

## Public methods

### toString

```
public @NonNull String toString()
```