Skip to content

Unknown keys with valid scan codes are not handled. #180

@thilokru

Description

@thilokru

I am working on a german keyboard and want to capture key events of the german umlaut ü.
The following lines of code prevent this:

virtual_keycode: Some(key), scancode, ..

virtual_keycode: Some(key), scancode, ..

Here, in both cases, a valid virtual key code is required for the event to be fired (Some(key)). If this requirement is omitted (tested localy), an input event for the piston library can be thrown (of course with an unknown key, but valid scancode). This allows the user to handle previous unhandable key inputs.

If a change in that direction is desired, I can provide a pull request implementig this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions