Subversion Repositories HelenOS-historic

Rev

Rev 1451 | Rev 1560 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1451 Rev 1504
Line 76... Line 76...
76
    SPECIAL, /* 0x36 - RShift */
76
    SPECIAL, /* 0x36 - RShift */
77
    '*',
77
    '*',
78
    SPECIAL, /* 0x38 - LAlt */
78
    SPECIAL, /* 0x38 - LAlt */
79
    ' ',
79
    ' ',
80
    SPECIAL, /* 0x3a - CapsLock */
80
    SPECIAL, /* 0x3a - CapsLock */
81
    0x3b, /* 0x3b - F1 */
-
 
82
//  SPECIAL, /* 0x3b - F1 */
81
    SPECIAL, /* 0x3b - F1 */
83
    0x3c, /* 0x3c - F2 */
-
 
84
//  SPECIAL, /* 0x3c - F2 */
82
    SPECIAL, /* 0x3c - F2 */
85
    0x3d, /* 0x3d - F3 */
-
 
86
//  SPECIAL, /* 0x3d - F3 */
83
    SPECIAL, /* 0x3d - F3 */
87
    0x3e, /* 0x3e - F4 */
-
 
88
//  SPECIAL, /* 0x3e - F4 */
84
    SPECIAL, /* 0x3e - F4 */
89
//  SPECIAL, /* 0x3f - F5 */
85
    SPECIAL, /* 0x3f - F5 */
90
    0x3f, /* 0x3f - F5 */
-
 
91
//  SPECIAL, /* 0x40 - F6 */
86
    SPECIAL, /* 0x40 - F6 */
92
    0x40, /* 0x40 - F6 */
-
 
93
//  SPECIAL, /* 0x41 - F7 */
87
    SPECIAL, /* 0x41 - F7 */
94
    0x41, /* 0x41 - F7 */
-
 
95
//  SPECIAL, /* 0x42 - F8 */
88
    SPECIAL, /* 0x42 - F8 */
96
    0x42, /* 0x42 - F8 */
-
 
97
//  SPECIAL, /* 0x43 - F9 */
89
    SPECIAL, /* 0x43 - F9 */
98
    0x43, /* 0x43 - F9 */
-
 
99
//  SPECIAL, /* 0x44 - F10 */
90
    SPECIAL, /* 0x44 - F10 */
100
    0x44, /* 0x44 - F10 */
-
 
101
    SPECIAL, /* 0x45 - NumLock */
91
    SPECIAL, /* 0x45 - NumLock */
102
    SPECIAL, /* 0x46 - ScrollLock */
92
    SPECIAL, /* 0x46 - ScrollLock */
103
    '7', '8', '9', '-',
93
    '7', '8', '9', '-',
104
    '4', '5', '6', '+',
94
    '4', '5', '6', '+',
105
    '1', '2', '3',
95
    '1', '2', '3',
Line 166... Line 156...
166
    SPECIAL, /* 0x36 - RShift */
156
    SPECIAL, /* 0x36 - RShift */
167
    '*',
157
    '*',
168
    SPECIAL, /* 0x38 - LAlt */
158
    SPECIAL, /* 0x38 - LAlt */
169
    ' ',
159
    ' ',
170
    SPECIAL, /* 0x3a - CapsLock */
160
    SPECIAL, /* 0x3a - CapsLock */
171
    0x3b, /* 0x3b - F1 */
-
 
172
    0x3c, /* 0x3c - F2 */
-
 
173
    0x3d, /* 0x3d - F3 */
-
 
174
    0x3e, /* 0x3e - F4 */
-
 
175
    0x3f, /* 0x3f - F5 */
-
 
176
    0x40, /* 0x40 - F6 */
-
 
177
    0x41, /* 0x41 - F7 */
-
 
178
    0x42, /* 0x42 - F8 */
-
 
179
    0x43, /* 0x43 - F9 */
-
 
180
    0x44, /* 0x44 - F10 */
-
 
181
//  SPECIAL, /* 0x3b - F1 */
161
    SPECIAL, /* 0x3b - F1 */
182
//  SPECIAL, /* 0x3c - F2 */
162
    SPECIAL, /* 0x3c - F2 */
183
//  SPECIAL, /* 0x3d - F3 */
163
    SPECIAL, /* 0x3d - F3 */
184
//  SPECIAL, /* 0x3e - F4 */
164
    SPECIAL, /* 0x3e - F4 */
185
//  SPECIAL, /* 0x3f - F5 */
165
    SPECIAL, /* 0x3f - F5 */
186
//  SPECIAL, /* 0x40 - F6 */
166
    SPECIAL, /* 0x40 - F6 */
187
//  SPECIAL, /* 0x41 - F7 */
167
    SPECIAL, /* 0x41 - F7 */
188
//  SPECIAL, /* 0x42 - F8 */
168
    SPECIAL, /* 0x42 - F8 */
189
//  SPECIAL, /* 0x43 - F9 */
169
    SPECIAL, /* 0x43 - F9 */
190
//  SPECIAL, /* 0x44 - F10 */
170
    SPECIAL, /* 0x44 - F10 */
191
    SPECIAL, /* 0x45 - NumLock */
171
    SPECIAL, /* 0x45 - NumLock */
192
    SPECIAL, /* 0x46 - ScrollLock */
172
    SPECIAL, /* 0x46 - ScrollLock */
193
    '7', '8', '9', '-',
173
    '7', '8', '9', '-',
194
    '4', '5', '6', '+',
174
    '4', '5', '6', '+',
195
    '1', '2', '3',
175
    '1', '2', '3',
Line 283... Line 263...
283
        case SC_CAPSLOCK:
263
        case SC_CAPSLOCK:
284
            keyflags |= PRESSED_CAPSLOCK;
264
            keyflags |= PRESSED_CAPSLOCK;
285
            break;
265
            break;
286
        case SC_SPEC_ESCAPE:
266
        case SC_SPEC_ESCAPE:
287
            break;
267
            break;
288
        case SC_LEFTARR:
268
    /*  case SC_LEFTARR:
289
            if (keybuffer_available(keybuffer) >= 3) {
269
            if (keybuffer_available(keybuffer) >= 3) {
290
                keybuffer_push(keybuffer, 0x1b);   
270
                keybuffer_push(keybuffer, 0x1b);   
291
                keybuffer_push(keybuffer, 0x5b);   
271
                keybuffer_push(keybuffer, 0x5b);   
292
                keybuffer_push(keybuffer, 0x44);   
272
                keybuffer_push(keybuffer, 0x44);   
293
            }
273
            }
Line 333... Line 313...
333
                keybuffer_push(keybuffer, 0x5b);   
313
                keybuffer_push(keybuffer, 0x5b);   
334
                keybuffer_push(keybuffer, 0x33);   
314
                keybuffer_push(keybuffer, 0x33);   
335
                keybuffer_push(keybuffer, 0x7e);   
315
                keybuffer_push(keybuffer, 0x7e);   
336
            }
316
            }
337
            break;
317
            break;
338
        default:
318
    */  default:
339
                letter = ((ascii >= 'a') && (ascii <= 'z'));
319
                letter = ((ascii >= 'a') && (ascii <= 'z'));
340
            capslock = (keyflags & PRESSED_CAPSLOCK) || (lockflags & LOCKED_CAPSLOCK);
320
            capslock = (keyflags & PRESSED_CAPSLOCK) || (lockflags & LOCKED_CAPSLOCK);
341
            shift = keyflags & PRESSED_SHIFT;
321
            shift = keyflags & PRESSED_SHIFT;
342
            if (letter && capslock)
322
            if (letter && capslock)
343
                shift = !shift;
323
                shift = !shift;
344
            if (shift)
324
            if (shift)
345
                map = sc_secondary_map;
325
                map = sc_secondary_map;
-
 
326
            if (map[key] != SPECIAL)
346
            keybuffer_push(keybuffer, map[key]);   
327
                keybuffer_push(keybuffer, map[key]);   
347
            break;
328
            break;
348
    }
329
    }
349
}
330
}
350
 
331
 
351
/** Register uspace irq handler
332
/** Register uspace irq handler