1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/*
* ## KEYBOARD LAYOUT MAPS ##
*
* Each map is an array where the content of each position is the key value
* associated with the event code (index). An special/unknown key is represented
* as a dot ('.'). The dot key itself has its own macro (KEY_DOT).
*
* By the moment, evspy does not support non-ascii characters.
*
* Select your map with EVS_MAP macro in evspy-core.h
*/
#ifndef __MAPS
#define __MAPS
#define EVS_KLAY_EN 0 // English standard layout
#define EVS_KLAY_ES 1 // Spanish standard layout
#ifndef EVS_KLAY
#define EVS_KLAY EVS_KLAY_EN // In case it is not defined in evspy-core.h
#endif // EVS_KEYBOARD
#if EVS_KLAY == EVS_KLAY_ES
// Spanish
static char map_es[] = {
'.', '.', '1', '2', '3', //0 // 1:ESC
'4', '5', '6', '7', '8', //5
'9', '0', '\'', '!', '\b', //10 // 13:¡ (NOASCII) 14:BACKSPACE
'.', 'q', 'w', 'e', 'r', //15 // 15:TAB
't', 'y', 'u', 'i', 'o', //20
'p', '`', '+', '\n', '.', //25 // 29:LCTRL
'a', 's', 'd', 'f', 'g', //30
'h', 'j', 'k', 'l', 'n', //35 // 39:ñ (NOASCII)
'\'', '.', '.', 'c', 'z', //40 // 42:LMAYUS 43:ç (NOASCII)
'x', 'c', 'v', 'b', 'n', //45
'm', ',', '.', '-', '.', //50 // 52:. 54:RMAYUS
'*', '.', ' ', '.', '.', //55 // 56:ALT 58:BLKMAYUS 59-68:F1-F10
'.', '.', '.', '.', '.', //60
'.', '.', '.', '.', '.', //65
'.', '7', '8', '9', '-', //70
'4', '5', '6', '+', '1', //75
'2', '3', '.', '.', '.', //80
'.', '<', '.', '.', '.', //85
'.', '.', '.', '.', '.', //90
'.', '\n', '.', '/', '.', //95 // 97:RCTRL
'.', '.', '.', '.', '.', //100 // 100:ALTGR 103:up_arrow
'.', '.', '.', '.', '.', //105 // 105:l_arrow 106:r_arrow 108:dwn_arrow
};
#endif // EVS_KLAY == es
#endif // __MAPS
|