aboutsummaryrefslogtreecommitdiff
path: root/src/utils/8042.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/8042.c')
-rw-r--r--src/utils/8042.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/utils/8042.c b/src/utils/8042.c
new file mode 100644
index 0000000..d8a5ba0
--- /dev/null
+++ b/src/utils/8042.c
@@ -0,0 +1,16 @@
+#include "8042.h"
+#include "print.h"
+#include "asm.h"
+
+DEFINE_AZERTY;
+
+void _8042_keypress(){
+ u8 data;
+ do {
+ inb(0x64,data);
+ }
+ while((data&0x01) == 0);
+ inb(0x60,data);
+ if(data<0x80)
+ putchar(AZERTY[data]);
+}