melonJS
    Preparing search index...

    Interface StickTap

    What a quick tap on a stick presses: see StickOptions.tap.

    interface StickTap {
        button?: number | null;
        key?: number;
        time?: number;
    }
    Index
    button?: number | null

    the pad button it presses, from GAMEPAD.BUTTONS; FACE_1 by default, or none when a key is given; null for none

    key?: number

    a key to press, instead of a pad button unless button is also given

    time?: number

    the longest a touch can last and still be a tap, in milliseconds. 250 by default.