Skip to content

Commit 9b63134

Browse files
committed
Fixed floating button values
1 parent d8b7797 commit 9b63134

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

v2-community/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
### Bug Fixes
1818

19+
* Floating Gamepad buttons now work correctly when partially pressing and releasing
1920
* Phaser.Line.intersectsRectangle() now works correctly for horizontal and vertical lines ([#2942](https://github.com/photonstorm/phaser/issues/2942)).
2021
* removeTextureAtlas now deletes the correct cache object.
2122

v2-community/src/input/DeviceButton.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ Phaser.DeviceButton.prototype = {
219219
*/
220220
padFloat: function (value) {
221221

222+
this.isDown = false;
223+
this.isUp = false;
224+
222225
this.value = value;
223226

224227
this.onFloat.dispatch(this, value);

0 commit comments

Comments
 (0)