mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
fix left/right mapping swap
This commit is contained in:
parent
13cdb9d64b
commit
220124a483
1 changed files with 4 additions and 4 deletions
|
|
@ -461,8 +461,8 @@ pub fn kpc_sr0_to_key(raw_event: u32) -> [KeyPress; 4] {
|
||||||
0 => KeyPress::Down,
|
0 => KeyPress::Down,
|
||||||
1 => KeyPress::Select,
|
1 => KeyPress::Select,
|
||||||
2 => KeyPress::Up,
|
2 => KeyPress::Up,
|
||||||
4 => KeyPress::Right,
|
4 => KeyPress::Left,
|
||||||
5 => KeyPress::Left,
|
5 => KeyPress::Right,
|
||||||
6 => KeyPress::Center,
|
6 => KeyPress::Center,
|
||||||
#[cfg(feature = "accel-kbd")]
|
#[cfg(feature = "accel-kbd")]
|
||||||
9 => KeyPress::Accel,
|
9 => KeyPress::Accel,
|
||||||
|
|
@ -489,8 +489,8 @@ pub fn kpc_sr1_to_key(raw_event: u32) -> KeyPress {
|
||||||
0x10 => KeyPress::Down,
|
0x10 => KeyPress::Down,
|
||||||
0x11 => KeyPress::Select,
|
0x11 => KeyPress::Select,
|
||||||
0x12 => KeyPress::Up,
|
0x12 => KeyPress::Up,
|
||||||
0x14 => KeyPress::Right,
|
0x14 => KeyPress::Left,
|
||||||
0x15 => KeyPress::Left,
|
0x15 => KeyPress::Right,
|
||||||
0x16 => KeyPress::Center,
|
0x16 => KeyPress::Center,
|
||||||
#[cfg(feature = "accel-kbd")]
|
#[cfg(feature = "accel-kbd")]
|
||||||
0x19 => KeyPress::Accel,
|
0x19 => KeyPress::Accel,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue