diff options
Diffstat (limited to 'src/int/8042.c')
| -rw-r--r-- | src/int/8042.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/int/8042.c b/src/int/8042.c new file mode 100644 index 0000000..f0a987f --- /dev/null +++ b/src/int/8042.c @@ -0,0 +1,16 @@ +#include "8042.h" +#include "utils/framebuffer.h" +#include "utils/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]); +} |
