Replies: 2 comments 1 reply
-
Makes sense! It was necessary to manually map the events before which is quite a lot of code, so I hoped introducing the
Maybe that's unfortunate that you can't create a
Yes exactly, if you haven't already found it, the
That's a good question. It seems to me that eframe |
Beta Was this translation helpful? Give feedback.
-
hmm... it does look like In their I see that in the I'm not sure that I can turn that back into a |
Beta Was this translation helpful? Give feedback.
-
I'm using three-d with eframe and egui (using a window that they create), and trying to map mouse events to a three_d::renderer::control
Previously, I had been getting the events from an egui::InputState (and egui::Event), and then translating those into three_d::renderer::control::Event, but the latest version of three_d has changed to using this LogicalPoint struct which has some private fields, so I don't think I can construct the three-d events myself now:
https://docs.rs/three-d/latest/src/three_d/renderer/control.rs.html#33-34
It seems the right way to do this is to use a three_d::window::FrameInputGenerator, and pass it a winit::Window
Question is; how the heck do I get the winit::Window that eframe and/or egui has created for me? I'm sure this must be possible and I'm just not seeing it.
Beta Was this translation helpful? Give feedback.
All reactions