Keyboard.js does not reflect Phaser.Key changes

Calling justPressed or justReleased on Phaser.Keyboard throws an exception. Changed to reflect new method names in Phaser.Key

I imagine you'd want these methods renamed as well, but it appears to be called by a few other classes and I didn't want a huge pull-request.
This commit is contained in:
Geoff Gaudreault 2014-11-20 11:23:43 -08:00
parent c909c29935
commit dbde5ee913

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
{