clik-engine API
    Preparing search index...

    Class InputBuffer

    Input buffer for fighting-game-style input with timing windows. Records recent action presses with timestamps for sequence detection.

    Index

    Constructors

    Accessors

    Methods

    • Get the sequence of actions within the time window (oldest first)

      Parameters

      • OptionalwindowMs: number
      • now: number = ...

      Returns string[]

    • Check if a specific sequence was input within the window

      Parameters

      • sequence: string[]
      • OptionalwindowMs: number
      • now: number = ...

      Returns boolean

    • Check if an action was pressed within the time window

      Parameters

      • action: string
      • OptionalwindowMs: number
      • now: number = ...

      Returns boolean