Skip to content

Add support for gyroscope and accelerometer #17773

Open
@Bcompartment

Description

@Bcompartment

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 gilrs-project/gilrs/-/issues/106
drivers github.com/Yamakaky/joy
joycon-sys: decoding and encoding HID reports. Doesn't include any I/O.
joycon: implements I/O and communication protocols on top of joycon-sys.
dualshock: decoding HID reports from the DS4 controller.
hid-gamepad: abstraction above dualshock and joycon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-InputPlayer input via keyboard, mouse, gamepad, and moreC-DependenciesA change to the crates that Bevy depends onC-FeatureA new feature, making something new possibleS-BlockedThis cannot move forward until something else changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions