mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
re-enable keyboard bouncer inside bao-video hosted mode
This commit is contained in:
parent
a313887c26
commit
444d7b310e
2 changed files with 1 additions and 5 deletions
|
|
@ -102,7 +102,6 @@ pub enum GfxOpcode {
|
|||
|
||||
#[cfg(feature = "board-baosec")]
|
||||
AcquireQr,
|
||||
#[cfg(feature = "board-baosec")]
|
||||
KeyPress,
|
||||
#[cfg(feature = "board-baosec")]
|
||||
PowerDown,
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@ use bao1x_hal::{
|
|||
use bao1x_hal_service::UdmaGlobal;
|
||||
#[cfg(feature = "b64-export")]
|
||||
use base64::{Engine as _, engine::general_purpose};
|
||||
#[cfg(feature = "board-baosec")]
|
||||
use num_traits::*;
|
||||
#[cfg(not(feature = "hosted-baosec"))]
|
||||
use utralib::utra;
|
||||
|
|
@ -202,9 +201,7 @@ pub fn wrapped_main(main_thread_token: MainThreadToken) -> ! {
|
|||
}
|
||||
|
||||
// respond to keyboard presses - needed to abort QR code mode
|
||||
#[cfg(not(feature = "hosted-baosec"))]
|
||||
let kbd = bao1x_api::keyboard::Keyboard::new(&xns).unwrap();
|
||||
#[cfg(not(feature = "hosted-baosec"))]
|
||||
kbd.register_listener(SERVER_NAME_GFX, GfxOpcode::KeyPress.to_u32().unwrap() as usize);
|
||||
|
||||
#[cfg(not(feature = "hosted-baosec"))]
|
||||
|
|
@ -435,9 +432,9 @@ pub fn wrapped_main(main_thread_token: MainThreadToken) -> ! {
|
|||
}
|
||||
// if qr_request is already pending, ignore any new acquisition requests
|
||||
}
|
||||
#[cfg(not(feature = "hosted-baosec"))]
|
||||
GfxOpcode::KeyPress => {
|
||||
if let Some(scalar) = msg.body.scalar_message() {
|
||||
#[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() {
|
||||
let acquisition = QrAcquisition { content: None, meta: None };
|
||||
|
|
|
|||
Loading…
Reference in a new issue