bevyengine / bevyengine/bevy

Add support for gyroscope and accelerometer

Open
#17,773 1 comment 5 reactions 0 assignees View on GitHub
A-Input C-Dependencies C-Feature S-Blocked
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## What problem does this solve or what need does it fill?

Modern controllers include a gyroscope and accelerometer.

## What solution would you like?

If gyro/accelerometer are not supported by the gamepad or platform, the API could return (0, 0, 0) for gyro (no rotation) and (0, 0, -1) for accelerometer (only gravity).

## Additional context

[gilrs-project ](https://gitlab.com/gilrs-project/gilrs/-/issues/106) gilrs-project/gilrs/-/issues/106
[drivers](https://github.com/Yamakaky/joy) github.com/Yamakaky/joy
[joycon-sys](https://yamakaky.github.io/joy/joycon_sys): decoding and encoding HID reports. Doesn't include any I/O.
[joycon](https://yamakaky.github.io/joy/joycon): implements I/O and communication protocols on top of joycon-sys.
[dualshock](https://yamakaky.github.io/joy/dualshock): decoding HID reports from the DS4 controller.
[hid-gamepad](https://yamakaky.github.io/joy/hid_gamepad): abstraction above dualshock and joycon.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing Bevy's existing gamepad API and the linked gilrs-project and joy controller implementations. Compare how gyro and accelerometer data are decoded and exposed across supported platforms. Done means the API supports these inputs and returns the specified fallback values when the platform or controller lacks them.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
game-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.