File: scancodes.h

package info (click to toggle)
simulavr 1.0.0%2Bgit20160221.e53413b-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 5,748 kB
  • sloc: cpp: 35,491; python: 6,991; ansic: 3,567; makefile: 1,072; sh: 653; asm: 414; tcl: 320
file content (159 lines) | stat: -rw-r--r-- 2,221 bytes parent folder | download | duplicates (2)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/*
 *  $Id$
 */

//Key Code Assignments

// Note: This file, as received from Atmel, contained some strange assignments.
// Most of the non numeric/character characters were mapped incorrectly
// according to my determination and I remapped them.  Either the file was
// incorrect or my keyboard was incorrect or I am missing some fundamental
// issue. A ':' now shows up as a ':' on the terminal.


#include <avr/pgmspace.h>

// Unshifted characters

static char const unshifted[][2]  __attribute__ ((progmem)) = {
{0x0d,9},
{0x0e,'`'},
{0x15,'q'},
{0x16,'1'},
{0x1a,'z'},
{0x1b,'s'},
{0x1c,'a'},
{0x1d,'w'},
{0x1e,'2'},
{0x21,'c'},
{0x22,'x'},
{0x23,'d'},
{0x24,'e'},
{0x25,'4'},
{0x26,'3'},
{0x29,' '},
{0x2a,'v'},
{0x2b,'f'},
{0x2c,'t'},
{0x2d,'r'},
{0x2e,'5'},
{0x31,'n'},
{0x32,'b'},
{0x33,'h'},
{0x34,'g'},
{0x35,'y'},
{0x36,'6'},
{0x39,','},
{0x3a,'m'},
{0x3b,'j'},
{0x3c,'u'},
{0x3d,'7'},
{0x3e,'8'},
{0x41,','},
{0x42,'k'},
{0x43,'i'},
{0x44,'o'},
{0x45,'0'},
{0x46,'9'},
{0x49,'.'},
{0x4a,'/'},
{0x4b,'l'},
{0x4c,';'},
{0x4d,'p'},
{0x4e,'-'},
{0x52,'\''},
{0x54,'['},
{0x55,'='},
{0x5a,13},
{0x5b,']'},
{0x5d,'\\'},
{0x61,'<'},
{0x66,8},
{0x69,'1'},
{0x6b,'4'},
{0x6c,'7'},
{0x70,'0'},
{0x71,'.'},
{0x72,'2'},
{0x73,'5'},
{0x74,'6'},
{0x75,'8'},
{0x79,'+'},
{0x7a,'3'},
{0x7b,'-'},
{0x7c,'*'},
{0x7d,'9'},
{0,0}
};

// Shifted characters
static char const shifted[][2]  __attribute__ ((progmem)) = {
{0x0d,9},
{0x0e,'~'},
{0x15,'Q'},
{0x16,'!'},
{0x1a,'Z'},
{0x1b,'S'},
{0x1c,'A'},
{0x1d,'W'},
{0x1e,'@'},
{0x21,'C'},
{0x22,'X'},
{0x23,'D'},
{0x24,'E'},
{0x25,'$'},
{0x26,'#'},
{0x29,' '},
{0x2a,'V'},
{0x2b,'F'},
{0x2c,'T'},
{0x2d,'R'},
{0x2e,'%'},
{0x31,'N'},
{0x32,'B'},
{0x33,'H'},
{0x34,'G'},
{0x35,'Y'},
{0x36,'^'},
{0x39,'L'},
{0x3a,'M'},
{0x3b,'J'},
{0x3c,'U'},
{0x3d,'&'},
{0x3e,'*'},
{0x41,'<'},
{0x42,'K'},
{0x43,'I'},
{0x44,'O'},
{0x45,')'},
{0x46,'('},
{0x49,'>'},
{0x4a,'\?'},
{0x4b,'L'},
{0x4c,':'},
{0x4d,'P'},
{0x4e,'_'},
{0x52,'\"'},
{0x54,'{'},
{0x55,'+'},
{0x5a,13},
{0x5b,'}'},
{0x5d,'|'},
{0x61,'>'},
{0x66,8},
{0x69,'1'},
{0x6b,'4'},
{0x6c,'7'},
{0x70,'0'},
{0x71,'.'},
{0x72,'2'},
{0x73,'5'},
{0x74,'6'},
{0x75,'8'},
{0x79,'+'},
{0x7a,'3'},
{0x7b,'-'},
{0x7c,'*'},
{0x7d,'9'},
{0,0}
};