Iced: winit event should not be moved

Created on 27 Mar 2020  路  4Comments  路  Source: hecrj/iced

iced_winit::conversion::window_event requires event to be moved, but winit event is no longer clone.
Can you relax condition, and take by reference?

feature improvement

All 4 comments

I think this is reasonable. #239 should fix the issue.

What are you doing with the winit event after converting it to an iced one?

I can't do anything currently; but I had to change entire event processing loop (which did not take owned event). It means iced must be last one to process event; but perhaps if i handle event then I don't want to send to iced, e.g., camera pans, for example.

Also if everyone who uses events took owned, it won't work :)

wonderful, thanks so much!

Yes i've tested this and svg path and works and is great ergonomic improvement, thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

twitchyliquid64 picture twitchyliquid64  路  4Comments

Newbytee picture Newbytee  路  4Comments

hecrj picture hecrj  路  3Comments

johannesvollmer picture johannesvollmer  路  4Comments

cetra3 picture cetra3  路  3Comments