Kintsugi OS 0.2.0
x86 Monolithic OS
Loading...
Searching...
No Matches
keyboard.c File Reference
#include "keyboard.h"
#include "../cpu/isr.h"
#include "../kernel/kernel.h"
#include "../kklibc/function.h"
#include "../kklibc/stdlib.h"
#include "lowlevel_io.h"
#include "screen.h"

Macros

#define BACKSPACE   0x0E
 
#define ENTER   0x1C
 
#define SC_MAX   57
 

Functions

static void keyboard_callback (registers_t regs)
 
void init_keyboard ()
 Инициализация драйвера клавиатуры
 

Variables

int shell_cursor_offset
 
int shell_prompt_offset
 
static char key_buffer [256]
 
static int shift_pressed = 0
 
static int caps_lock = 0
 
static int ctrl_pressed = 0
 
static int alt_pressed = 0
 
const char sc_ascii_lower []
 
const char sc_ascii_upper []
 

Macro Definition Documentation

◆ BACKSPACE

#define BACKSPACE   0x0E

◆ ENTER

#define ENTER   0x1C

◆ SC_MAX

#define SC_MAX   57

Function Documentation

◆ init_keyboard()

void init_keyboard ( )

Инициализация драйвера клавиатуры

◆ keyboard_callback()

static void keyboard_callback ( registers_t  regs)
static

Variable Documentation

◆ alt_pressed

int alt_pressed = 0
static

◆ caps_lock

int caps_lock = 0
static

◆ ctrl_pressed

int ctrl_pressed = 0
static

◆ key_buffer

char key_buffer[256]
static

◆ sc_ascii_lower

const char sc_ascii_lower[]
Initial value:
= {'?', '?', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-', '=', '?',
'?', 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', '[', ']', '?', '?',
'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', '\'', '`', '?', '\\', 'z',
'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/', '?', '?', '?', ' '}

◆ sc_ascii_upper

const char sc_ascii_upper[]
Initial value:
= {'?', '?', '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '+', '?',
'?', 'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', '{', '}', '?', '?',
'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', ':', '"', '~', '?', '|', 'Z',
'X', 'C', 'V', 'B', 'N', 'M', '<', '>', '?', '?', '?', '?', ' '}

◆ shell_cursor_offset

int shell_cursor_offset
extern

◆ shell_prompt_offset

int shell_prompt_offset
extern

◆ shift_pressed

int shift_pressed = 0
static