Skip to content

API to get the list of keys pressed in the last frame #50

@morew4rd

Description

@morew4rd

This will help with input configuration UIs in games. Let's say you want to move from WASD to ESDF for navigation. This is currently quite difficult with lyte2d.

Main reason for this is the design decision to not use/expose events as first class. This is the right choice for Lyte2D, but it means that we need the right polling functions to cover the features required.

The API here will only deal with keyboard. I have some thoughts of unifying gamepad/mouse buttons with the keyboard in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions