mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 17:58:23 +00:00
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:
parent
c909c29935
commit
dbde5ee913
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue