phaser/src/input/events/UPDATE_EVENT.js

20 lines
794 B
JavaScript
Raw Normal View History

2019-01-16 12:13:30 +00:00
/**
* @author Richard Davey <rich@photonstorm.com>
2020-01-15 12:07:09 +00:00
* @copyright 2020 Photon Storm Ltd.
2019-05-10 15:15:04 +00:00
* @license {@link https://opensource.org/licenses/MIT|MIT License}
2019-01-16 12:13:30 +00:00
*/
/**
* The Input Plugin Update Event.
*
* This internal event is dispatched by the Input Plugin at the start of its `update` method.
* This hook is designed specifically for input plugins, but can also be listened to from user-land code.
*
* @event Phaser.Input.Events#UPDATE
* @since 3.0.0
2019-01-16 12:13:30 +00:00
*
* @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.
* @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.
*/
module.exports = 'update';