[AD] fix for KEY_PAUSE handling in X version

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


This patch fixes behaviour of KEY_PAUSE in X version.  Now it should
be similar to DOS version.

diff -ruN old/all3929/src/x/xkeybd.c new/all3929/src/x/xkeybd.c
--- old/all3929/src/x/xkeybd.c	Mon Dec 13 03:51:26 1999
+++ new/all3929/src/x/xkeybd.c	Wed Dec 15 22:53:23 1999
@@ -92,7 +92,7 @@
       switch (code & 0x7F) {
 	 case 0:
 	    /* Pause.  */
-	    if ((code & 0x80) == 0) {
+	    if (pressed) {
 	       /* Only keypress is interesting.  */
 	       _handle_pckey(0xE1); _handle_pckey(0x1D); _handle_pckey(0x52);
 	       _handle_pckey(0xE1); _handle_pckey(0x9D); _handle_pckey(0xD2);


-- 
Michael Bukin



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/