q5play
    Preparing search index...

    Class InputDevice

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    holdThreshold: number

    The amount of frames an input must be pressed to be considered held.

    12
    

    Methods

    • Parameters

      • Optionalinp: string

      Returns boolean

      true on the first frame that the user released a held input

    • Parameters

      • Optionalinp: string

      Returns number

      the amount of frames the user has been holding the input

    • Parameters

      • Optionalinp: string

      Returns boolean

      true on the first frame that the user holds the input

    • Same as the released function, which is preferred.

      Parameters

      • Optionalinp: string

      Returns boolean

      true on the first frame that the user released the input

    • Parameters

      • Optionalinp: string

      Returns boolean

      true on the first frame that the user presses the input

    • Parameters

      • Optionalinp: string

      Returns number

      the amount of frames the user has been pressing the input

    • Parameters

      • Optionalinp: string

      Returns boolean

      true on the first frame that the user released the input

    • Parameters

      • Optionalinp: any

      Returns boolean