Skip to content

feat: add support gyroscope API #24

Description

@RodrigoDornelles

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

references

features

  • data-gpz-gryo add axis to controll

examples

car wheel steering

<canvas
  class="gpz-car-steering"
  data-gpz-bind="KeyA KeyD"
  data-gpz-gryo="Y">
</canvas>

simple controls joystick

<canvas
  class="gpz-joy"
  data-gpz-bind="KeyW KeyA KeyS KeyD"
  data-gpz-gryo="X Y">
</canvas>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions