Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Input

Index

Properties

Static Private _gameTouchs

_gameTouchs: TouchState[] = []

Static Private _init

_init: boolean = false

Static Private _previousTouchState

_previousTouchState: TouchState = new TouchState()

Static Private _resolutionOffset

_resolutionOffset: Vector2 = new Vector2()

Static Private _resolutionScale

_resolutionScale: Vector2 = Vector2.one

Static Private _totalTouchCount

_totalTouchCount: number = 0

Static Private _touchIndex

_touchIndex: number = 0

Static _virtualInputs

_virtualInputs: VirtualInput[] = []

Accessors

Static gameTouchs

  • 触摸列表 存放最大个数量触摸点信息 可通过判断touchPoint是否为-1 来确定是否为有触摸 通过判断touchDown 判断触摸点是否有按下

    Returns TouchState[]

Static maxSupportedTouch

  • get maxSupportedTouch(): number
  • set maxSupportedTouch(value: number): void

Static resolutionScale

Static totalTouchCount

  • get totalTouchCount(): number

Static touchPosition

Static touchPositionDelta

  • get touchPositionDelta(): Vector2

Methods

Static Private initTouchCache

  • initTouchCache(): void

Static initialize

  • initialize(): void

Static isKeyDown

  • isKeyDown(key: Keys): boolean

Static isKeyDownBoth

  • isKeyDownBoth(keyA: Keys, keyB: Keys): boolean

Static isKeyPressed

  • isKeyPressed(key: Keys): boolean

Static isKeyPressedBoth

  • isKeyPressedBoth(keyA: Keys, keyB: Keys): boolean

Static isKeyReleased

  • isKeyReleased(key: Keys): boolean

Static isKeyReleasedBoth

  • isKeyReleasedBoth(keyA: Keys, keyB: Keys): boolean

Static scaledPosition

Static Private setpreviousTouchState

  • setpreviousTouchState(touchState: TouchState): void

Static Private touchBegin

  • touchBegin(evt: TouchEvent): void

Static Private touchEnd

  • touchEnd(evt: TouchEvent): void

Static Private touchMove

  • touchMove(evt: TouchEvent): void

Static update

  • update(): void

Generated using TypeDoc