Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InputEvents

Hierarchy

  • InputEvents

Index

Constructors

constructor

Methods

buttonCombo

  • buttonCombo(buttons: string[], duration?: number): Observable<InputButtonCombo>

playerIndexButtonCombo

  • playerIndexButtonCombo(index: number, buttons: string[], duration?: number): Observable<InputButtonCombo>
  • Returns an observable which emits when buttons is held for duration number of frames.

    memberof

    InputEvents

    Parameters

    • index: number

      The player index

    • buttons: string[]

      The button combination

    • Default value duration: number = 1

      The number of frames the buttons were held for

    Returns Observable<InputButtonCombo>

Generated using TypeDoc