aboutsummaryrefslogtreecommitdiff
path: root/src/utils/8042.c
blob: 1d221522257008cbde6bb795f8ad4fbc7e8d6849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "8042.h"
#include "framebuffer.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]);
}