mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 17:58:23 +00:00
Merge pull request #1349 from neurofuzzy/patch-1
Keyboard.js does not reflect Phaser.Key changes
This commit is contained in:
commit
dab26a65fa
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