Skip to content

Commit

Permalink
enable immersive on android
Browse files Browse the repository at this point in the history
  • Loading branch information
kuviman committed Jun 21, 2024
1 parent 9a3a485 commit b81efd3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/geng-window/src/backend/glutin_winit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ where
event_loop: &winit::event_loop::ActiveEventLoop,
) {
event_loop.set_control_flow(winit::event_loop::ControlFlow::Poll);

// TODO maybe not spam every event? but it needs to be done from a correct thread
#[cfg(target_os = "android")]
batbox_android::enable_immersive();

if let winit::event::Event::Suspended = event {
event_loop.set_control_flow(winit::event_loop::ControlFlow::Wait);
}
Expand Down

0 comments on commit b81efd3

Please sign in to comment.