Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement navigator.getGamepads() #135

Merged
merged 18 commits into from
Jun 22, 2024
Merged

Implement navigator.getGamepads() #135

merged 18 commits into from
Jun 22, 2024

Conversation

TooTallNate
Copy link
Owner

@TooTallNate TooTallNate commented Jun 20, 2024

  • Allows for up to 8 gamepads to be individually controlled
  • Adds support for l/r analog stick positions to be utilzed
  • Removes non-standard buttondown and buttonup events
  • Use preventDefault() on "beforeunload" event to prevent exiting

Closes #46.

 - Removes non-standard `buttondown` and `buttonup` events
 - Use `preventDefault()` on "beforeunload" event to prevent exiting
Copy link

vercel bot commented Jun 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-js ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 22, 2024 7:55am

Copy link

changeset-bot bot commented Jun 20, 2024

🦋 Changeset detected

Latest commit: bbbce10

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@nx.js/constants Patch
nxjs-runtime Patch
2048 Patch
gamepads Patch
snake Patch
@nx.js/nro Patch
@nx.js/nsp Patch
create-nxjs-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@TooTallNate TooTallNate marked this pull request as ready for review June 22, 2024 06:08
@TooTallNate TooTallNate merged commit 3c0167c into main Jun 22, 2024
4 checks passed
@TooTallNate TooTallNate deleted the gamepad branch June 22, 2024 07:58
@github-actions github-actions bot mentioned this pull request Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement web Gamepad API
1 participant