k-tana-zero/k/pic/keyboard.c

14 lines
191 B
C
Raw Normal View History

2021-07-16 01:24:01 +00:00
#include "pic/keyboard.h"
#include "io.h"
#include "stdio.h"
int8_t getkey(void)
{
uint8_t key = inb(KEYBOARD_IO);
if (key & KEYBOARD_RELEASE)
return -1;
return key;
}