jazzfool / reclutch

Rust UI Core
Other
157 stars 4 forks source link

Investigate dedicated "calloop" support #15

Closed fogti closed 4 years ago

fogti commented 4 years ago

splitted off #13. The question is: Should we add dedicated calloop support to reclutch_event?

winit uses calloop internally, but doesn't expose the full API. calloop itself is way more low-level. It's an event loop implementation, as such, it fits into the realm of reclutch_event. If we add support, it's unclear how much/what to include, because calloop wraps serval things.

Related:

jazzfool commented 4 years ago

It seems that winit uses calloop only for Linux targets. Also, the most suitable "host" for reclutch is winit, which already has event loop event integration with winit.

I'm also not sure how well it would integrate with the current event API without making drastic changes.