API Docs for: 0.0.1
Show:

AnimFrameUpdateStrategy Class

Defined in: gamepad.js:45
Module: Gamepad

This strategy uses a timer function to call an update function. The timer (re)start function can be provided or the strategy reverts to one of the window.*requestAnimationFrame variants.

Constructor

AnimFrameUpdateStrategy

(
  • [requestAnimationFrame]
)

Defined in gamepad.js:45

Parameters:

  • [requestAnimationFrame] Function optional

    function to use for timer creation

Item Index

Methods

start

(
  • updateFunction
)

Defined in gamepad.js:82

Starts the update strategy using the given function

Parameters:

  • updateFunction Function

    the function to call at each update

startTicker

()

Defined in gamepad.js:73

(Re)Starts the ticker

tickFunction

()

Defined in gamepad.js:64

This method calls the (user) update and restarts itself