Turnstone Operating System
Loading...
Searching...
No Matches
kbd_scancodes.64.c File Reference

Keyboard scancodes. More...

#include <types.h>
#include <device/kbd_scancodes.h>

Macros

#define KBD_SCANCODES_NORMAL_SIZE   (sizeof(KBD_SCANCODES_NORMAL) / sizeof(wchar_t))
 
#define KBD_SCANCODES_CAPSON_SIZE   (sizeof(KBD_SCANCODES_CAPSON) / sizeof(wchar_t))
 
#define KBD_SCANCODES_SHIFT_SIZE   (sizeof(KBD_SCANCODES_SHIFT) / sizeof(wchar_t))
 
#define KBD_SCANCODES_SHIFTCAPSON_SIZE   (sizeof(KBD_SCANCODES_SHIFTCAPSON) / sizeof(wchar_t))
 
#define KBD_SCANCODES_ALT_SIZE   (sizeof(KBD_SCANCODES_ALT) / sizeof(wchar_t))
 
#define KBD_SCANCODES_ALTSHIFT_SIZE   (sizeof(KBD_SCANCODES_ALTSHIFT) / sizeof(wchar_t))
 

Functions

 MODULE ("turnstone.kernel.hw.kbd")
 
static boolean_t kbd_scancode_is_printable (wchar_t scancode)
 
wchar_t kbd_scancode_get_value (wchar_t scancode, kbd_state_t *ks, boolean_t *is_printable)
 
wchar_t kbd_scancode_fixcode (wchar_t ps2code)
 

Variables

const wchar_t KBD_SCANCODES_NORMAL []
 
const wchar_t KBD_SCANCODES_CAPSON []
 
const wchar_t KBD_SCANCODES_SHIFT []
 
const wchar_t KBD_SCANCODES_SHIFTCAPSON []
 
const wchar_t KBD_SCANCODES_ALT []
 
const wchar_t KBD_SCANCODES_ALTSHIFT []
 

Detailed Description

Keyboard scancodes.

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.

Variable Documentation

◆ KBD_SCANCODES_ALT

const wchar_t KBD_SCANCODES_ALT[]
Initial value:
= {
KBD_SCANCODE_NULL, KBD_SCANCODE_ESC, L'¡', L'™', L'£', L'¢', L'∞', L'§', L'¶', L'•', L'ª', L'º', L'–', L'≠', KBD_SCANCODE_BACKSPACE,
'\t', L'œ', L'´', L'´', L'®', L'†', L'¥', L'¨', L'ˆ', L'ø', L'π', L'“', L'‘', '\n' ,
KBD_SCANCODE_LEFTCTRL, L'å', L'ß', L'∂', L'ƒ', L'©', L'˙', L'∆', L'˚', L'¬', L'…', L'æ', L'`' ,
KBD_SCANCODE_LEFTSHIFT, L'«', L'Ω', L'≈', KBD_SCANCODE_NULL , L'√', L'∫', L'˜', L'µ', L'≤', L'≥', L'÷', KBD_SCANCODE_RIGHTSHIFT,
}

◆ KBD_SCANCODES_ALTSHIFT

const wchar_t KBD_SCANCODES_ALTSHIFT[]
Initial value:
= {
KBD_SCANCODE_NULL, KBD_SCANCODE_ESC, L'⁄', L'€', L'‹', L'›', L'fi', L'fl', L'‡', L'°', L'·', L'‚', L'—', L'±', KBD_SCANCODE_BACKSPACE,
'\t', L'Œ', L'„', L'´', L'‰', L'ˇ', L'Á', L'¨', L'ˆ', L'Ø', L'∏', L'”', L'’', '\n' ,
KBD_SCANCODE_LEFTCTRL, L'Å', L'Í', L'Î', L'Ï', L'˝', L'Ó', L'Ô', L'', L'Ò', L'Ú', L'Æ', L'`' ,
KBD_SCANCODE_LEFTSHIFT, L'»', L'¸', L'˛', L'Ç', L'◊', L'ı', L'˜', L'Â', L'¯', L'˘', L'¿', KBD_SCANCODE_RIGHTSHIFT,
}

◆ KBD_SCANCODES_CAPSON

const wchar_t KBD_SCANCODES_CAPSON[]
Initial value:
= {
KBD_SCANCODE_NULL, KBD_SCANCODE_ESC, '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-', '=', KBD_SCANCODE_BACKSPACE,
'\t', 'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', '[', ']', '\n' ,
KBD_SCANCODE_LEFTCTRL, 'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', ';', '\'', '`' ,
KBD_SCANCODE_LEFTSHIFT, '\\', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', ',', '.', '/', KBD_SCANCODE_RIGHTSHIFT,
}

◆ KBD_SCANCODES_NORMAL

const wchar_t KBD_SCANCODES_NORMAL[]
Initial value:
= {
KBD_SCANCODE_NULL, KBD_SCANCODE_ESC, '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-', '=', KBD_SCANCODE_BACKSPACE ,
'\t', 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', '[', ']', '\n' ,
KBD_SCANCODE_LEFTCTRL, 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', '\'', '`' ,
KBD_SCANCODE_LEFTSHIFT, '\\', 'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/', KBD_SCANCODE_RIGHTSHIFT ,
'*', KBD_SCANCODE_LEFTALT, ' ', KBD_SCANCODE_CAPSLOCK ,
KBD_SCANCODE_F1, KBD_SCANCODE_F2, KBD_SCANCODE_F3, KBD_SCANCODE_F4, KBD_SCANCODE_F5,
KBD_SCANCODE_F6, KBD_SCANCODE_F7, KBD_SCANCODE_F8, KBD_SCANCODE_F9, KBD_SCANCODE_F10,
KBD_SCANCODE_NUMLOCK, KBD_SCANCODE_SCROLLLOCK, '7', '8', '9', '-', '4', '5', '6', '+', '1', '2', '3', '0', '.' ,
KBD_SCANCODE_NULL , KBD_SCANCODE_NULL , KBD_SCANCODE_NULL ,
KBD_SCANCODE_F11, KBD_SCANCODE_F12,
KBD_SCANCODE_NULL , KBD_SCANCODE_NULL , KBD_SCANCODE_NULL , KBD_SCANCODE_NULL , KBD_SCANCODE_NULL , KBD_SCANCODE_NULL ,
KBD_SCANCODE_NULL , '\n' , KBD_SCANCODE_RIGHTCTRL, '/' , KBD_SCANCODE_NULL ,
KBD_SCANCODE_RIGHTALT, '\n' ,
KBD_SCANCODE_HOME, KBD_SCANCODE_UP, KBD_SCANCODE_PAGEUP, KBD_SCANCODE_LEFT, KBD_SCANCODE_RIGHT, KBD_SCANCODE_END, KBD_SCANCODE_DOWN, KBD_SCANCODE_PAGEDOWN, KBD_SCANCODE_INSERT, KBD_SCANCODE_DELETE,
KBD_SCANCODE_NULL , KBD_SCANCODE_NULL , KBD_SCANCODE_NULL , KBD_SCANCODE_NULL , KBD_SCANCODE_NULL , KBD_SCANCODE_NULL ,
KBD_SCANCODE_NULL , KBD_SCANCODE_NULL , KBD_SCANCODE_NULL , KBD_SCANCODE_NULL , KBD_SCANCODE_NULL , KBD_SCANCODE_NULL , KBD_SCANCODE_NULL ,
KBD_SCANCODE_LEFTMETA, KBD_SCANCODE_RIGHTMETA
}

◆ KBD_SCANCODES_SHIFT

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

◆ KBD_SCANCODES_SHIFTCAPSON

const wchar_t KBD_SCANCODES_SHIFTCAPSON[]
Initial value:
= {
KBD_SCANCODE_NULL, KBD_SCANCODE_ESC, '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '+', KBD_SCANCODE_BACKSPACE,
'\t', 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', '{', '}', '\n' ,
KBD_SCANCODE_LEFTCTRL, 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ':', '"', '~' ,
KBD_SCANCODE_LEFTSHIFT, '|', 'z', 'x', 'c', 'v', 'b', 'n', 'm', '<', '>', '?', KBD_SCANCODE_RIGHTSHIFT,
}