You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't found any events for handling window orientation if it changes. Particularly on mobile devices (I'm primarily interested in iOS). I am happy to do the work to plumb this myself, but since this would require changes to events I wanted to solicit some feedback from the maintainers about how to best design this. My thought is to add an Orientation event to winit::event::WindowEvent.
The text was updated successfully, but these errors were encountered:
Hi, I think this sounds reasonable and useful! winit::event::WindowEvent looks sensible but might depend on how other OS expose it, which I'm currently not too familiar with. IIRC on Windows, an event is also sent per window, but other OS might count it as screen/monitor transformation.
My assumption until this point had been that monitor-bound windows wouldn't necessarily change their orientation, but I can see how that might not be true. I am building an AR app that uses the camera of iOS devices. So when orientation changes I need to transform the quad rendering the camera accordingly. That use case doesn't have to be bound to phones though. I'd need to see how something like a Windows 10 tablet reports orientation since the exact same use case would carry over there. I can submit a WIP PR for the iOS side of this and maybe if there's someone who has more Windows experience can pitch in on the orientation of Windows devices? That might be the best way to arrive at a reasonable cross-platform API. I don't have a Windows tablet. Will have to see if I can "fake it" on my Windows laptop.
I haven't found any events for handling window orientation if it changes. Particularly on mobile devices (I'm primarily interested in iOS). I am happy to do the work to plumb this myself, but since this would require changes to events I wanted to solicit some feedback from the maintainers about how to best design this. My thought is to add an
Orientation
event towinit::event::WindowEvent
.The text was updated successfully, but these errors were encountered: