dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] pnet/support console.c,1.3,1.4


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnet/support console.c,1.3,1.4
Date: Sat, 08 Nov 2003 00:20:43 +0000

Update of /cvsroot/dotgnu-pnet/pnet/support
In directory subversions:/tmp/cvs-serv12929/support

Modified Files:
        console.c 
Log Message:


If a special key corresponds to a single ASCII character, then return
that character as well as the key code.


Index: console.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/support/console.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** console.c   7 Nov 2003 05:18:36 -0000       1.3
--- console.c   8 Nov 2003 00:20:41 -0000       1.4
***************
*** 971,974 ****
--- 971,984 ----
                                                {
                                                        /* Found a special key 
*/
+                                                       if(len == 1)
+                                                       {
+                                                               /* Return the 
underlying character if the
+                                                                  key only has 
one associated with it */
+                                                               *ch = 
(ILUInt16)(keyBuffer[0] & 0xFF);
+                                                       }
+                                                       else
+                                                       {
+                                                               *ch = 0;
+                                                       }
                                                        if(keyBufferLen > len)
                                                        {
***************
*** 977,981 ****
                                                        }
                                                        keyBufferLen -= len;
-                                                       *ch = 0;
                                                        *key = 
SpecialKeys[posn].key;
                                                        *modifiers = 
SpecialKeys[posn].modifiers;
--- 987,990 ----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]