Subversion Repositories HelenOS-historic

Rev

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

Rev 1644 Rev 1645
Line 366... Line 366...
366
    return 1;
366
    return 1;
367
}
367
}
368
 
368
 
369
int kbd_arch_process(keybuffer_t *keybuffer, int scan_code)
369
int kbd_arch_process(keybuffer_t *keybuffer, int scan_code)
370
{
370
{
371
    if(msim) return kbd_arch_process_msim(keybuffer, scan_code);
-
 
372
    if(gxemul) return kbd_arch_process_gxemul(keybuffer, scan_code);
-
 
373
 
371
 
-
 
372
    static int esc_count=0;
-
 
373
 
-
 
374
   
-
 
375
    if ( scan_code == 0x1b ) {
-
 
376
        esc_count++;
-
 
377
        if ( esc_count == 3 ) {
-
 
378
            __SYSCALL0(SYS_DEBUG_ENABLE_CONSOLE);
-
 
379
        }  
-
 
380
    } else {
-
 
381
        esc_count=0;
-
 
382
    }
-
 
383
 
-
 
384
    if(msim) return kbd_arch_process_msim(keybuffer, scan_code);
-
 
385
    if(gxemul) return kbd_arch_process_gxemul(keybuffer, scan_code);
-
 
386
 
374
    return 0;
387
    return 0;
375
}
388
}
376
 
389