asny / three-d

2D/3D renderer - makes it simple to draw stuff across platforms (including web)
MIT License
1.34k stars 110 forks source link

Make event handling independent of window module #342

Closed asny closed 1 year ago

asny commented 1 year ago

From #339:

I think another nice change would be to refactor this match which (among other things) translates winit::Events to three_d::renderer::Events and make that a function I can use on its own; that way I could handle winit initialization myself, but still use (e.g.) CameraControl.

asny commented 1 year ago

@silverlyra Just wanted to say that this was a really great idea 👍 Hopefully, after #345, you can use a custom winit window and handle winit events yourself while using the three-d camera controls. Also, see the winit_window example.

I still need to fix on web and to update the README, so I'm not closing this yet. And of course, any input is more than welcome.