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

TODO: Fix events #13

Open
9 tasks
Lucretia opened this issue Jan 29, 2018 · 0 comments
Open
9 tasks

TODO: Fix events #13

Lucretia opened this issue Jan 29, 2018 · 0 comments

Comments

@Lucretia
Copy link
Collaborator

Lucretia commented Jan 29, 2018

This is two issues in one:

  • Need a tagged event hierarchy rather than a copy of the C struct.
    • Root type
    • Keyboard type
    • Joystick type
    • Mouse type
  • Rename SDL.Events.Events and make it a private package, or move the Events type to the private part of SDL.Events.
  • Move SDL.Events.Events.Poll to SDL.Events.Poll and change to use the tagged types.
    • Use Ada's factory for creating tagged types - too much overhead, too slow?
  • Investigate calling SDL.Events.Poll in the library, copying all events to an event queue held in a protected object. This would help with tasking at a higher level. This might also be a bit slower, needs to be checked.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant