ArvernOS
Loading...
Searching...
No Matches
keyboard.h File Reference
#include <stdint.h>
Include dependency graph for keyboard.h:

Macros

#define KB_ARROW_UP   72
 The scancode for the arrow up key.
 
#define KB_BACKSPACE   14
 The scancode for the backspace key.
 
#define KB_CAPS_LOCK   58
 The scancode for the caps lock key.
 
#define KB_ENTER   28
 The scancode for the enter key.
 
#define KB_LSHIFT   42
 The scancode for the left shift key.
 
#define KB_RSHIFT   54
 The scancode for the right shift key.
 

Functions

void keyboard_init ()
 
uint8_t keyboard_get_scancode ()
 

Detailed Description

Function Documentation

◆ keyboard_get_scancode()

uint8_t keyboard_get_scancode ( )

Returns the last scancode read from the keyboard or 0.

See also
https://en.wikipedia.org/wiki/Scancode
Returns
the last scancode read or 0

◆ keyboard_init()

void keyboard_init ( )

Initializes the keyboard (PS/2 controller) driver.