Options
Menu

Class TouchEvent

Hierarchy

  • EventBase

Index

Constructors

constructor

  • Create a new TouchEvent object.

    Parameters

    • type: string

      The type of the TouchEvent.

    Returns TouchEvent

Properties

_iAllowedToPropagate

_iAllowedToPropagate: boolean

_iParentEvent

_iParentEvent: TouchEvent

altKey

altKey: boolean

Indicates whether the Alt key is active (true) or inactive (false).

ctrlKey

ctrlKey: boolean

Indicates whether the Control key is active (true) or inactive (false).

elementIndex

elementIndex: number

The index of the elements where the event took place.

entity

entity: IEntity

The 3d object inside which the event took place.

material

material: MaterialBase

The material of the 3d element inside which the event took place.

normal

normal: Vector3D

The normal in object space where the event took place

position

position: Vector3D

The position in object space where the event took place

renderable

renderable: IRenderable

The renderable owner inside which the event took place.

screenX

screenX: number

The horizontal coordinate at which the event occurred in view coordinates.

screenY

screenY: number

The vertical coordinate at which the event occurred in view coordinates.

shiftKey

shiftKey: boolean

Indicates whether the Shift key is active (true) or inactive (false).

target

target: any

Reference to target object

property

target

type

Object

touchPointID

touchPointID: number

type

type: string

Type of event

property

type

type

String

uv

uv: Point

The uv coordinate inside the draw primitive where the event took place.

view

view: IView

The view object inside which the event took place.

Static TOUCH_BEGIN

TOUCH_BEGIN: string

Static TOUCH_END

TOUCH_END: string

Static TOUCH_MOVE

TOUCH_MOVE: string

Static TOUCH_OUT

TOUCH_OUT: string

Static TOUCH_OVER

TOUCH_OVER: string

Accessors

bubbles

  • get (): boolean
  • inheritdoc

    Returns boolean

sceneNormal

  • get (): Vector3D
  • The normal in scene space where the event took place

    Returns Vector3D

scenePosition

  • get (): Vector3D
  • The position in scene space where the event took place

    Returns Vector3D

Methods

clone

  • Creates a copy of the TouchEvent object and sets the value of each property to match that of the original.

    Returns TouchEvent

stopImmediatePropagation

  • stopImmediatePropagation(): void
  • inheritdoc

    Returns void

stopPropagation

  • stopPropagation(): void
  • inheritdoc

    Returns void

Generated using TypeDoc