Pessimistic memory allocation.
* Added/removed headers as necessary * Removed 'key_event' function from keyboard
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
#include <stdio.h>
|
||||
#include "display.h"
|
||||
#include "keyboard.h"
|
||||
|
||||
@@ -104,14 +103,6 @@ void handle_card_movement(struct cursor *cursor) {
|
||||
return;
|
||||
}
|
||||
|
||||
int key_event() {
|
||||
int pressed_key;
|
||||
|
||||
pressed_key = getchar();
|
||||
|
||||
return(pressed_key);
|
||||
}
|
||||
|
||||
void handle_keyboard_event(int key) {
|
||||
switch (key) {
|
||||
case 'h':
|
||||
|
||||
Reference in New Issue
Block a user