Skip to content

Don't use callback functions #4

@ChocolateLoverRaj

Description

@ChocolateLoverRaj

Using callback functions can be complicated and inflexible. I think the way pc-keybaord does it is much better, where you give it a u8 and it will return an Option with the decoded event. https://docs.rs/pc-keyboard/0.8.0/pc_keyboard/struct.Keyboard.html#method.add_byte

I can make a PR for this.

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