axle OS
x86_32 UNIX-like hobby OS
src
kernel
drivers
kb
keymap.h
1
#ifndef KEYMAP_H
2
#define KEYMAP_H
3
4
//1 bit per control key, in order above (LSB = CONTROL, MSB = NUMLOCK)
5
//1 == set, 0 == not set
6
typedef
uint8_t key_status_t;
7
8
typedef
struct
keymap
{
9
//chars mapped to scancodes
10
uint8_t scancodes[128];
11
uint8_t shift_scancodes[128];
12
13
//function keys mapped to bit positions in key status map
14
uint8_t control_map[8];
15
16
//statuses of control keys
17
key_status_t controls;
18
}
keymap_t
;
19
20
#endif
keymap
Definition:
keymap.h:8
Generated by
1.8.14