Phaser API Documentation

  Version: 
updatePoll(time, delta)

Description:

This is called automatically by the Input Manager. It emits events for plugins to listen to and also handles polling updates, if enabled.

Parameters:

name type description
time number

The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.

delta number

The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.

Returns:
Description:

true if the plugin and the Scene it belongs to is active.

Type:
  • boolean
Since: 3.18.0
Source: src/input/InputPlugin.js (Line 542)