Broke some functions into smaller pieces, added the initial keyboard interface.
This commit is contained in:
10
lib/keyboard.c
Normal file
10
lib/keyboard.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include "keyboard.h"
|
||||
|
||||
int key_event() {
|
||||
int pressed_key;
|
||||
|
||||
pressed_key = getchar();
|
||||
|
||||
return(pressed_key);
|
||||
}
|
||||
Reference in New Issue
Block a user