melonJS
    Preparing search index...

    Function setGamepadDeadzone

    • Set deadzone for analog gamepad inputs
      The default deadzone is 0.1 (10%) Analog values less than this will be ignored

      For axes it is the floor that a binding's own threshold is added to: one bound with threshold: 0.5 under this default fires at 0.6, so raising it moves every axis binding with it. An ordinary button never consults it at all, since its pressed state comes from the browser; it reaches a button only where a non-standard mapping routes an axis onto one through its analog array.

      Parameters

      • value: number

        Deadzone value

      Returns void