From d020bda4be509b7ceec74a5e9c8ebe273dc23ad5 Mon Sep 17 00:00:00 2001 From: bunnie Date: Wed, 22 Apr 2026 01:22:18 +0800 Subject: [PATCH] ignore accelerometer "keys" in video loop --- services/bao-video/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/bao-video/src/main.rs b/services/bao-video/src/main.rs index 722e92ba2..16ee32f55 100644 --- a/services/bao-video/src/main.rs +++ b/services/bao-video/src/main.rs @@ -521,6 +521,11 @@ pub fn wrapped_main(main_thread_token: MainThreadToken) -> ! { } GfxOpcode::KeyPress => { if let Some(scalar) = msg.body.scalar_message() { + let k = char::from_u32(scalar.arg1 as u32).unwrap_or('\u{0000}'); + if k == '🔽' || k == '🔼' { + // ignore accelerometer reports + continue; + } #[cfg(not(feature = "hosted-baosec"))] // any key press will abort QR acquisition by taking the qr_request. if let Some(mut envelope) = qr_request.take() {