Description

Initialize the gamepad

Usage

Parameters

  • onConnect {Function} optional

    (optional) Callback function when the gamepad is connected

  • onDisconnect {Function} optional

    (optional) Callback function when the gamepad is disconnected

Returns

CanvasEngine.Input.Gamepad

Discussion