Skip to content

Gamepads cannot be easily manually registered or deregistered #4911

@alice-i-cecile

Description

@alice-i-cecile

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

Users want to manually register and deregister gamepads as part of tests to verify that gamepad inputs are working correctly.

The critical methods / fields on the Gamepads struct are private however, which makes doing so rather convoluted.

What solution would you like?

Make the register and deregister methods on Gamepads public.

What alternative(s) have you considered?

We could expose the underlying HashSet directly, but that flavor of API is somewhat harder to read.

Users can already do this with a horrible workaround where they manually run the public gamepad_connection_system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-InputPlayer input via keyboard, mouse, gamepad, and moreC-UsabilityA targeted quality-of-life change that makes Bevy easier to useX-Needs-SMEThis type of work requires an SME to approve it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions