Merge pull request #1349 from neurofuzzy/patch-1

Keyboard.js does not reflect Phaser.Key changes
This commit is contained in:
Richard Davey 2014-11-20 20:33:44 +00:00
commit dab26a65fa

View file

@ -465,7 +465,7 @@ Phaser.Keyboard.prototype = {
if (this._keys[keycode])
{
return this._keys[keycode].justPressed(duration);
return this._keys[keycode].downDuration(duration);
}
else
{
@ -488,7 +488,7 @@ Phaser.Keyboard.prototype = {
if (this._keys[keycode])
{
return this._keys[keycode].justReleased(duration);
return this._keys[keycode].upDuration(duration);
}
else
{