Update of /cvsroot/linuxconsole/ruby/linux/drivers/input/keyboard
In directory usw-pr-cvs1:/tmp/cvs-serv9288
Modified Files:
amikbd.c
Log Message:
the up/down event is received in the lsb bit, the other 7 bits are the keycode.
Index: amikbd.c
===================================================================
RCS file: /cvsroot/linuxconsole/ruby/linux/drivers/input/keyboard/amikbd.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- amikbd.c 2002/01/31 23:05:28 1.11
+++ amikbd.c 2002/02/01 00:12:27 1.12
@@ -78,8 +78,8 @@
udelay(85); /* wait until 85 us have expired */
ciaa.cra &= ~0x40; /* switch CIA serial port to input mode */
- scancode = scancode >> 1; /* lowest bit is release bit */
- down = scancode & 1;
+ down = scancode & 1; /* lowest bit is release bit */
+ scancode = scancode >> 1;
if (scancode < 0x78) { /* scancodes < 0x78 are keys */
|