mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
wire up some function keys in hosted mode, add some fun glyphs for testing
This commit is contained in:
parent
9a455051bf
commit
63159e50db
2 changed files with 7 additions and 1 deletions
|
|
@ -167,6 +167,12 @@ impl XousDisplay {
|
|||
Key::Space => ' ',
|
||||
Key::Comma => ',',
|
||||
Key::Period => '.',
|
||||
Key::F1 => 0x11_u8.into(),
|
||||
Key::F2 => 0x12_u8.into(),
|
||||
Key::F3 => 0x13_u8.into(),
|
||||
Key::F4 => 0x14_u8.into(),
|
||||
Key::F5 => '😃',
|
||||
Key::F6 => '福',
|
||||
_ => '\u{0000}',
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ fn map_qwerty(code: RowCol) -> ScanCode {
|
|||
(7, 9) => ScanCode{key: Some(0xd_u8.into()), shift: Some(0xd_u8.into()), hold: Some(0xd_u8.into()), alt: Some(0xd_u8.into())}, // carriage return
|
||||
|
||||
(8, 5) => ScanCode{key: Some(0xf_u8.into()), shift: Some(0xf_u8.into()), hold: Some(0xf_u8.into()), alt: Some(0xf_u8.into())}, // shift in (blue shift)
|
||||
(8, 6) => ScanCode{key: Some(','), shift: Some(0xe_u8.into()), hold: Some('富'), alt: None}, // 0xe is shift out (sym) '富' -> just for testing hanzi plane
|
||||
(8, 6) => ScanCode{key: Some(','), shift: Some(0xe_u8.into()), hold: Some('福'), alt: None}, // 0xe is shift out (sym) '富' -> just for testing hanzi plane
|
||||
(8, 7) => ScanCode{key: Some(' '), shift: Some(' '), hold: None /* hold of none -> repeat */, alt: None},
|
||||
(8, 8) => ScanCode{key: Some('.'), shift: Some('😃'), hold: Some('😃'), alt: None},
|
||||
(8, 9) => ScanCode{key: Some(0xf_u8.into()), shift: Some(0xf_u8.into()), hold: Some(0xf_u8.into()), alt: Some(0xf_u8.into())}, // shift in (blue shift)
|
||||
|
|
|
|||
Loading…
Reference in a new issue