mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
keyboard: Implement From instead of Into
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
This commit is contained in:
parent
709ff8f9f2
commit
6163414dd1
1 changed files with 3 additions and 3 deletions
|
|
@ -35,9 +35,9 @@ impl From<usize> for KeyMap {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
impl Into<usize> for KeyMap {
|
impl From<KeyMap> for usize {
|
||||||
fn into(self) -> usize {
|
fn from(map: KeyMap) -> usize {
|
||||||
match self {
|
match map {
|
||||||
// note: these indicese correspond to the position on the keyboard menu
|
// note: these indicese correspond to the position on the keyboard menu
|
||||||
KeyMap::Qwerty => 0,
|
KeyMap::Qwerty => 0,
|
||||||
KeyMap::Azerty => 1,
|
KeyMap::Azerty => 1,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue