Skip to content

Commit

Permalink
Issue Solve #77 Working on Issue #76
Browse files Browse the repository at this point in the history
  • Loading branch information
amanuel2 committed Dec 9, 2016
1 parent 68dbee4 commit e33ecc5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/i386/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ CSRCS = \
cpu/interrupts/isr.c \
drv/driver.c \
drv/ps2/kbd/scancodes.c \
drv/ps2/kbd/scancodes_usa.c \
drv/ps2/kbd/kbd_layouts/scancodes_usa.c \
drv/ps2/kbd/utils.c

cpu/interrupts/interrupts-asm.o: NASMFLAGS += -i cpu/interrupts/
Expand Down
10 changes: 8 additions & 2 deletions arch/i386/drv/ps2/kbd/kbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,14 @@ void wait_until_enter(char key)
*/
void key_handler()
{
if((((char)kbd_info.key) == '6') ||
(((char)kbd_info.key) == '8'))
//printk("IN KEY HANDLER");
if(
(((char)kbd_info.key) == '6')
||
(((char)kbd_info.key) == '8')
)
{
printk("HERE");
if(kbd_info.is_caps == false && print_scank == true)
{
__backspace_count++;
Expand All @@ -157,6 +162,7 @@ void key_handler()
{
case KBD_QWERTY_LEFT_SHIFT_PRESS:
case KBD_QWERTY_RIGHT_SHIFT_PRESS:
printk("SHIFT");
kbd_info.is_shift = true;
break;
case KBD_QWERTY_CAPS_PRESS:
Expand Down
File renamed without changes.
Empty file added boot/.hide
Empty file.
Empty file added boot/boot/.hide
Empty file.

0 comments on commit e33ecc5

Please sign in to comment.