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

feat: add support to motion API #25

Open
1 task
RodrigoDornelles opened this issue Jan 11, 2024 · 0 comments
Open
1 task

feat: add support to motion API #25

RodrigoDornelles opened this issue Jan 11, 2024 · 0 comments

Comments

@RodrigoDornelles
Copy link
Owner

Support the cell phone's gyroscope, which can be 1, 2 or 3 axes at the same time.

references

features

  • data-gpz-motion add axis to controll

examples

simple controls joystick

<canvas
  class="gpz-joy"
  data-gpz-bind="KeyW KeyA KeyS KeyD"
  data-gpz-motion="X Y">
</canvas>
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

No branches or pull requests

1 participant