fix hosted mode

This commit is contained in:
bunnie 2025-05-06 03:06:21 +08:00
parent 89d6b0e81f
commit 4640213410

View file

@ -1023,9 +1023,12 @@ fn wrapped_main() -> ! {
core::char::from_u32(k3 as u32).unwrap_or('\u{0000}'),
core::char::from_u32(k4 as u32).unwrap_or('\u{0000}'),
];
#[cfg(feature = "no-gam")]
if has_focus {
renderer_modal.key_event(keys);
}
#[cfg(not(feature = "no-gam"))]
renderer_modal.key_event(keys);
}),
Some(Opcode::ModalDrop) => {
// this guy should never quit, it's a core OS service