OusmOS/src/intf/keydriver.h
2024-12-30 15:52:32 -06:00

19 lines
413 B
C

#ifndef KEYDRIVER_H
#define KEYDRIVER_H
#define KEYBOARD_BUFFER_SIZE 128
// Initializes the keyboard driver
void init_keyboard_driver();
// Reads a single character from the keyboard and stores it in the buffer
char read_key();
// Gets the current index of the buffer
unsigned int get_buffer_index();
// Retrieves the contents of the keyboard buffer
const char* get_keyboard_buffer();
#endif // KEYDRIVER_H