iOS: add support for controlling the home indicator, and Exclusive video mode#1078
iOS: add support for controlling the home indicator, and Exclusive video mode#1078goddessfreya merged 3 commits intorust-windowing:masterfrom
Conversation
|
I don't have a setup that I could test this with right now. I'll grab a Lightning Digital AV Adapter from the store later today and I can give this a try then. |
august64
left a comment
There was a problem hiding this comment.
Awesome doc improvements. Thanks for the PR!
|
I can't seem to be able to detect more than a single screen with |
|
(@zegentzy you probably should've waited to merge this until after @aleksijuvani came back with feedback... Finland is very much a different timezone, so you didn't even give them a chance. Plus, @mtak- explicitly requested review from them.) |
|
I tested enough to get a green screen up on an external display using two methods (device only):
I am not sure if getting a list of monitors is possible before the event loop begins? |
|
Also FWIW, I never saw more than 1 video mode per monitor. I suspect appletv only supports 1 video mode (current mode is read only on tvos), but even when directly using HDMI I only saw 1 video mode for the TV... Perhaps testing against a PC monitor would have different results. |
My bad, I did not notice this. I saw it was approved, and gave it a quick skim, and it looked okay. Sorry folks. |
|
I see! It's interesting that no external displays are reported until after the event loop has started running. I've moved the function call until after the event loop starts, and I'm now indeed seeing the external display being reported. I've tested this with a Dell P2715Q display via HDMI using the Digital AV Adapter on an iPhone 6s, and it is reporting multiple video modes for this display. I put together an application with gfx-hal that creates two windows and clears them to different colors. It appears that the "video mode change" (in quotes because it's apparently not an actual mode change, but affects how iOS presents the application on the display) functions properly, as the window's origin and scale change on the display. However, the cleared rectangle is not updated to the new bounds of the display, but remains the same size (scaling non-withstanding), even though resize events are emitted for the window. This is also an issue with the "borderless" fullscreen mode, so I don't think it's caused by the changes in this pull request. I'm not sure if this is an issue with winit or with gfx-hal. |
|
It's completely undocumented that My sample app, also using gfx, had the fullscreen call happen after touch, and the window and swapchain were resized appropriately to fit the new screen (1920x1080). I am using a custom Thank you for testing this! |
|
Interesting! Thank you for the insight. I'm not creating a |
|
gfx-rs/gfx#2882 is what I've been testing against as well. |
|
It turns out that gfx-hal was creating the |
cargo fmthas been run on this branchCHANGELOG.mdif knowledge of this change could be valuable to usersAlso fixes a bug with getting the monitor name on iOS.
r? @aleksijuvani