Skip to content

Commit

Permalink
v0.5.6 clear debounce on stop
Browse files Browse the repository at this point in the history
  • Loading branch information
reececomo committed Jan 23, 2025
1 parent e35358a commit 8c09004
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/index.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.cjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pixijs-input-devices",
"version": "0.5.5",
"version": "0.5.6",
"author": "Reece Como <[email protected]>",
"authors": [
"Reece Como <[email protected]>"
Expand Down
5 changes: 5 additions & 0 deletions src/lib/devices/gamepads/GamepadDevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,11 @@ export class GamepadDevice

if ( Math.abs( value ) < joy.threshold )
{
if ( !this.button[axisCode] )
{
this._debounces.delete( axisCode );
}

this.button[axisCode] = false;
}
else
Expand Down

0 comments on commit 8c09004

Please sign in to comment.