We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e4a494 commit 69b5707Copy full SHA for 69b5707
1 file changed
src/input/Keyboard.js
@@ -460,7 +460,7 @@ Phaser.Keyboard.prototype = {
460
* @param {number} [duration=50] - The duration within which the key is considered as being just pressed. Given in ms.
461
* @return {boolean} True if the key was pressed down within the given duration, false if not or null if the Key wasn't found.
462
*/
463
- downDuration: function (keycode) {
+ downDuration: function (keycode, duration) {
464
465
if (this._keys[keycode])
466
{
0 commit comments