mwg API
    Preparing search index...

    Function fakeGamepad

    • A Gamepad for Input/PlayerInput tests: buttons are values from 0 to 1 (pressed above 0.5), axes from -1 to 1. Hand it to the code under test the way navigator.getGamepads() would.

      Parameters

      • index: number
      • buttons: number[] = []
      • axes: number[] = []

      Returns Gamepad