historical/gems-kernel.git/source/kbd.h
ThatLinuxFan 498b6dd8d3 more fixes 💻
2024-01-26 17:50:01 -06:00

19 lines
391 B
C

unsigned char inport(char keyid, char state) {
return inportb(keyid); //super hacky way to inport
}
unsigned char outport(char scancode, char state) {
return (outport(scancode, state)); //hacky way to set key state.
}
void kbd_ack(void){
while(!(inport(0x60, 0xfa)==0xfa));
}
void kbd_led_handling(char ledstatus){;
outport(0x60,0xed);
kbd_ack();
outport(0x60,ledstatus);
}