From 220124a483e466da9df8caca7d0eb10dd794b392 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 2 Apr 2026 03:49:08 +0800 Subject: [PATCH] fix left/right mapping swap --- libs/bao1x-hal/src/board/baosec.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/bao1x-hal/src/board/baosec.rs b/libs/bao1x-hal/src/board/baosec.rs index 827706a73..47061cfea 100644 --- a/libs/bao1x-hal/src/board/baosec.rs +++ b/libs/bao1x-hal/src/board/baosec.rs @@ -461,8 +461,8 @@ pub fn kpc_sr0_to_key(raw_event: u32) -> [KeyPress; 4] { 0 => KeyPress::Down, 1 => KeyPress::Select, 2 => KeyPress::Up, - 4 => KeyPress::Right, - 5 => KeyPress::Left, + 4 => KeyPress::Left, + 5 => KeyPress::Right, 6 => KeyPress::Center, #[cfg(feature = "accel-kbd")] 9 => KeyPress::Accel, @@ -489,8 +489,8 @@ pub fn kpc_sr1_to_key(raw_event: u32) -> KeyPress { 0x10 => KeyPress::Down, 0x11 => KeyPress::Select, 0x12 => KeyPress::Up, - 0x14 => KeyPress::Right, - 0x15 => KeyPress::Left, + 0x14 => KeyPress::Left, + 0x15 => KeyPress::Right, 0x16 => KeyPress::Center, #[cfg(feature = "accel-kbd")] 0x19 => KeyPress::Accel,