Add simpler Event
type inspired by simple Processing/oF style methods.
#5
Milestone
Event
type inspired by simple Processing/oF style methods.
#5
Currently we mostly just re-export the events emitted by the winit crate, however these can be pretty verbose and the pattern matching can get pretty grueling when all you want to do is check if a key was pressed or not.
It would be sweet if there was a function to convert
WindowEvent
to a much simpler event, something like:In this case, the template could maybe look like something closer to this:
The text was updated successfully, but these errors were encountered: