Merge branch 'evl2' into eventloop-2.0

This commit is contained in:
Osspial 2019-05-16 00:26:59 -04:00
commit 8d6a857ba5
16 changed files with 335 additions and 38 deletions

View file

@ -85,6 +85,15 @@ fn main() {
window.set_fullscreen(Some(window.get_current_monitor()));
}
}
(VirtualKeyCode::S, ElementState::Pressed) => {
println!("window.get_fullscreen {:?}", window.get_fullscreen());
#[cfg(target_os = "macos")]
{
use winit::os::macos::WindowExt;
println!("window.get_simple_fullscreen {:?}", WindowExt::get_simple_fullscreen(&window));
}
}
(VirtualKeyCode::M, ElementState::Pressed) => {
is_maximized = !is_maximized;
window.set_maximized(is_maximized);