mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 14:40:38 +00:00
The Input Plugin was emitting a preUpdate
event, with the capital U, instead of preupdate
. This has now been corrected. Fix #4185
This commit is contained in:
parent
d596fbd8c0
commit
93a76475ea
2 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
|||
* `InputManager.transformPointer` has a new boolean argument `wasMove`, which controls if the pointer is being transformed after a move or up/down event.
|
||||
* `Pointer.velocity` is a new Vector2 that contains the velocity of the Pointer, based on the previous and current position. This is updated whenever the Pointer moves, regardless of button states. If you find the velocity is too erratic, consider enabling the `smoothFactor`.
|
||||
* `Pointer.angle` is a new property that contains the angle of the Pointer, in radians, based on the previous and current position. This is updated whenever the Pointer moves, regardless of button states. If you find the angle is too erratic, consider enabling the `smoothFactor`.
|
||||
* The Input Plugin was emitting a `preUpdate` event, with the capital U, instead of `preupdate`. This has now been corrected. Fix #4185 (thanks @gadelan)
|
||||
|
||||
### New Features
|
||||
|
||||
|
|
|
@ -406,7 +406,7 @@ var InputPlugin = new Class({
|
|||
preUpdate: function ()
|
||||
{
|
||||
// Registered input plugins listen for this
|
||||
this.pluginEvents.emit('preUpdate');
|
||||
this.pluginEvents.emit('preupdate');
|
||||
|
||||
var removeList = this._pendingRemoval;
|
||||
var insertList = this._pendingInsertion;
|
||||
|
|
Loading…
Reference in a new issue