Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interface the input system #10

Open
Gamabunta57 opened this issue Mar 2, 2024 · 0 comments
Open

Interface the input system #10

Gamabunta57 opened this issue Mar 2, 2024 · 0 comments
Assignees

Comments

@Gamabunta57
Copy link
Owner

As the other architectural tickets, the goal is to provide an simple abstraction layer over the input system from SDL.

The goal of the interface is to provide an API that can:

  • initialise if needed and free memory if needed
  • propose an API to do some basic event checks like "isDown", "isUp", "isPressed", "isReleased" for buttons of keys
  • propose an API to get information from analog inputs with
    • isInDeadZone
    • setDeadZone
    • getValue?
  • #later: propose an abstraction to have an API that gets analog inputs but as logical input like buttons
  • #later: propose an abstraction to have logical inputs behaving like analog inputs (saw that in Unity but, is it useful?)
@Gamabunta57 Gamabunta57 added this to the Interfacing SDL milestone Mar 3, 2024
@Gamabunta57 Gamabunta57 self-assigned this Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant