mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 15:14:47 +00:00
Update CHANGELOG.md
This commit is contained in:
parent
0791ae10d2
commit
6a2e8a06b6
1 changed files with 9 additions and 0 deletions
|
@ -18,6 +18,15 @@
|
|||
* `InputManager.onMouseWheel` is a new internal method that handles processing the wheel event.
|
||||
* `InputManager.processWheelEvent` is a new internal method that handles processing the wheel event sent by the Input Manager.
|
||||
|
||||
#### Button Released Support
|
||||
|
||||
* `Pointer.button` is a new property that indicates which button was pressed, or released, on the pointer during the most recent event. It is only set during `up` and `down` events and is always 0 for Touch inputs.
|
||||
* `Pointer.leftButtonReleased` is a new method that returns `true` if it was the left mouse button that was just released. This can be checked in a `pointerup` event handler to find out which button was released.
|
||||
* `Pointer.rightButtonReleased` is a new method that returns `true` if it was the right mouse button that was just released. This can be checked in a `pointerup` event handler to find out which button was released (thanks @BobtheUltimateProgrammer)
|
||||
* `Pointer.middleButtonReleased` is a new method that returns `true` if it was the middle mouse button that was just released. This can be checked in a `pointerup` event handler to find out which button was released.
|
||||
* `Pointer.backButtonReleased` is a new method that returns `true` if it was the back mouse button that was just released. This can be checked in a `pointerup` event handler to find out which button was released.
|
||||
* `Pointer.forwardButtonReleased` is a new method that returns `true` if it was the forward mouse button that was just released. This can be checked in a `pointerup` event handler to find out which button was released.
|
||||
|
||||
#### Input System Bug Fixes
|
||||
|
||||
* Calling `setPollAlways()` would cause the `'pointerdown'` event to fire multiple times. Fix #4541 (thanks @Neyromantik)
|
||||
|
|
Loading…
Reference in a new issue