mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 17:16:03 +00:00
9 lines
461 B
TypeScript
9 lines
461 B
TypeScript
/**
|
|
* Returns `true` if the Key was released within the `duration` value given, or `false` if it either isn't up,
|
|
* or was released longer ago than then given duration.
|
|
*
|
|
* @method Phaser.Key#upDuration
|
|
* @param {number} [duration=50] - The duration within which the key is considered as being just released. Given in ms.
|
|
* @return {boolean} True if the key was released within the given duration.
|
|
*/
|
|
export default function (key: any, duration: any): boolean;
|