InputEvent.Pointer


public final class InputEvent.Pointer


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

Summary

Public fields

static final @NonNull InputEvent.Pointer

Default pointer type for the source (no handedness).

static final @NonNull InputEvent.Pointer

Left hand / controller pointer.

static final @NonNull InputEvent.Pointer

Right hand / controller pointer.

Public methods

@NonNull String

Public fields

DEFAULT

public static final @NonNull InputEvent.Pointer DEFAULT

Default pointer type for the source (no handedness). Occurs for Source.UNKNOWN, Source.HEAD, Source.MOUSE, and Source.GAZE_AND_GESTURE.

LEFT

public static final @NonNull InputEvent.Pointer LEFT

Left hand / controller pointer. Occurs for Source.CONTROLLER, Source.HANDS, and Source.GAZE_AND_GESTURE.

RIGHT

public static final @NonNull InputEvent.Pointer RIGHT

Right hand / controller pointer. Occurs for Source.CONTROLLER, Source.HANDS, and Source.GAZE_AND_GESTURE.

Public methods

toString

public @NonNull String toString()