Skip to content

Support player movement through multiple input methods #8

@InsanityCode

Description

@InsanityCode

The current implementation doesn't handle multiple different inputs for the same direction.
Only the semantic of the input is considered, not the means how they're achieved.

To fix that, this list could track concrete InputAxis instead of just their assigned semantic.

// TODO: Capture actual input instead of just direction,
// to support multiple keys (or keyboards) for the same action
LinkedList<Direction> inputs = new LinkedList<Direction>();

This way we could allow movement using both W, A, S, D and , , , or differnt devices like controllers or multiple keyboards.

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