ControlProvider

ControlProvider

This provider (singleton) monitors in short time intervals if a gamepad is available. Currently the provider is only active if the URL parameter gamepad=1 is set.

Constructor

new ControlProvider()

Source:

Extends

  • EventTarget

Methods

(private) checkControllingMode_()

Description:
  • Init check for gamepad instance

Source:

getGamepad_(idCondition) → {Gamepad}

Description:
  • Determines a gamepad instance that optionally satisfies a condition for its ID to distinguish a particular type of gamepad.

Source:
Parameters:
Name Type Description
idCondition string | null
Returns:
Type
Gamepad

startCheck()

Description:
  • Starts the interval check for a gamepad instance

Source:

(private) update()

Description:
  • Dispatch an update event if a gamepad was found

Source: