[OpenBIOS] r418 - openbios-devel/drivers

svn at openbios.org svn at openbios.org
Sat Jan 17 21:39:12 CET 2009


Author: blueswirl
Date: 2009-01-17 21:39:12 +0100 (Sat, 17 Jan 2009)
New Revision: 418

Modified:
   openbios-devel/drivers/escc.c
Log:
Send key on key press, not release: closes #26

Modified: openbios-devel/drivers/escc.c
===================================================================
--- openbios-devel/drivers/escc.c	2009-01-17 20:28:21 UTC (rev 417)
+++ openbios-devel/drivers/escc.c	2009-01-17 20:39:12 UTC (rev 418)
@@ -272,8 +272,8 @@
         else if (ch == 238)
             shiftstate &= ~2;
         //printk("getch: %d\n", ch);
-    }
-    while ((ch & 0x80) == 0 || ch == 238 || ch == 227); // Wait for key release
+    } // If release, wait for key press
+    while ((ch & 0x80) == 0x80 || ch == 238 || ch == 227);
     //printk("getch rel: %d\n", ch);
     ch &= 0x7f;
     if (shiftstate)




More information about the OpenBIOS mailing list