mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
ignore accelerometer "keys" in video loop
This commit is contained in:
parent
4a236cfd68
commit
d020bda4be
1 changed files with 5 additions and 0 deletions
|
|
@ -521,6 +521,11 @@ pub fn wrapped_main(main_thread_token: MainThreadToken) -> ! {
|
||||||
}
|
}
|
||||||
GfxOpcode::KeyPress => {
|
GfxOpcode::KeyPress => {
|
||||||
if let Some(scalar) = msg.body.scalar_message() {
|
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"))]
|
#[cfg(not(feature = "hosted-baosec"))]
|
||||||
// any key press will abort QR acquisition by taking the qr_request.
|
// any key press will abort QR acquisition by taking the qr_request.
|
||||||
if let Some(mut envelope) = qr_request.take() {
|
if let Some(mut envelope) = qr_request.take() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue