Skip to content

Commit 69b5707

Browse files
committed
Added missing duration parameter.
1 parent 7e4a494 commit 69b5707

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/input/Keyboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ Phaser.Keyboard.prototype = {
460460
* @param {number} [duration=50] - The duration within which the key is considered as being just pressed. Given in ms.
461461
* @return {boolean} True if the key was pressed down within the given duration, false if not or null if the Key wasn't found.
462462
*/
463-
downDuration: function (keycode) {
463+
downDuration: function (keycode, duration) {
464464

465465
if (this._keys[keycode])
466466
{

0 commit comments

Comments
 (0)