Map keyboard to bépo
This commit is contained in:
@@ -3,6 +3,7 @@ use io::SeekFrom;
|
||||
|
||||
use crate::{
|
||||
draw::{Color, Draw, FONT_HEIGHT, FONT_WIDTH},
|
||||
println,
|
||||
vga::{self, Vga},
|
||||
virtual_fs::{self, FILE_SYSTEM, VirtualFileSystem},
|
||||
};
|
||||
@@ -40,6 +41,7 @@ impl VirtualConsole {
|
||||
}
|
||||
|
||||
pub fn write_char(&mut self, c: char) {
|
||||
println!("char_console: {:?}", c as u64);
|
||||
let mut last_cursor = self.cursor;
|
||||
match c {
|
||||
'\n' => {
|
||||
@@ -67,7 +69,7 @@ impl VirtualConsole {
|
||||
'\t' => {
|
||||
self.cursor.x = (self.cursor.x / TAB_SIZE + 1) * TAB_SIZE;
|
||||
}
|
||||
_ if c <= 127 as char && c >= 32 as char => {
|
||||
_ if c as u64 <= 42 * 32 && c >= 32 as char => {
|
||||
unsafe {
|
||||
self.draw_char_bg(
|
||||
(self.cursor.x * FONT_WIDTH as u64) as u16,
|
||||
|
||||
Reference in New Issue
Block a user