API Docs for: 0.0.1
Show:

ManualUpdateStrategy Class

Defined in: gamepad.js:93
Module: Gamepad

This strategy gives the user the ability to call the library internal update function on request. Use this strategy if you already have a timer function running by requestAnimationFrame and you need fine control over when the gamepads are updated.

Constructor

ManualUpdateStrategy

()

Defined in gamepad.js:93

Item Index

Methods

Methods

start

(
  • updateFunction
)

Defined in gamepad.js:113

Starts the update strategy using the given function

Parameters:

  • updateFunction Function

    the function to call at each update

update

()

Defined in gamepad.js:107

Calls the update function in the started state. Does nothing otherwise.