Skip to content

Physical key <-> logical key conversions #4606

Description

@UkoeHB

Description

Working on a Bevy project, I want to store keybindings and their defaults as physical keys but display them to the user as logical keys. There is currently no complete ecosystem solution for this (the closest is keyboard_keynames which does not have macos support or esoteric platform support).

winit creates key events on input with both physical and logical keys, but does not have a conversion API. It would make sense for winit to support conversions since it already has a large keyboard and OS internal/external surface.

Related:

Relevant platforms

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions