Options
All
  • Public
  • Public/Protected
  • All
Menu

Holds all information related to an Interaction event

memberof

PIXI

Hierarchy

  • InteractionData

Index

Constructors

constructor

  • Returns InteractionData

Properties

button

button: number

buttons

buttons: number

global

global: Point

height

height: number

identifier

identifier: number

isPrimary

isPrimary: boolean

originalEvent

pointerType

pointerType: string

pressure

pressure: number

rotationAngle

rotationAngle: number

tangentialPressure

tangentialPressure: number

target

tiltX

tiltX: number

tiltY

tiltY: number

twist

twist: number

width

width: number

Accessors

pointerId

  • get pointerId(): number

Methods

copyEvent

  • Copies properties from normalized event data.

    Parameters

    Returns void

getLocalPosition

  • This will return the local coordinates of the specified displayObject for this InteractionData

    Type parameters

    Parameters

    • displayObject: DisplayObject

      The DisplayObject that you would like the local coords off

    • Optional point: P
    • Optional globalPos: IPointData

    Returns P

    A point containing the coordinates of the InteractionData position relative to the DisplayObject

reset

  • reset(): void
  • Resets the data for pooling.

    Returns void

Generated using TypeDoc