fix left/right mapping swap

This commit is contained in:
bunnie 2026-04-02 03:49:08 +08:00
parent 13cdb9d64b
commit 220124a483

View file

@ -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,