[Mplayer-cvslog] CVS: main/libvo wskeys.h,1.6,1.7 x11_common.c,1.158,1.159

Dmitry Baryshkov CVS lumag at mplayerhq.hu
Wed Sep 24 09:39:16 CEST 2003


Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv15783

Modified Files:
	wskeys.h x11_common.c 
Log Message:
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
will work now.


Index: wskeys.h
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/wskeys.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- wskeys.h	9 Apr 2003 17:05:35 -0000	1.6
+++ wskeys.h	24 Sep 2003 07:38:57 -0000	1.7
@@ -65,6 +65,31 @@
 #define wsLess  '<'
 #define wsMore  '>'
 
+#define wsGrave      '`'
+#define wsTilde      '~'
+#define wsExclSign   '!'
+#define wsAt         '@'
+#define wsHash       '#'
+#define wsDollar     '$'
+#define wsPercent    '%'
+#define wsCircumflex '^'
+#define wsAmpersand  '&'
+#define wsobracket   '('
+#define wscbracket   ')'
+#define wsUnder      '_'
+#define wsocbracket  '{'
+#define wsccbracket  '}'
+#define wsColon      ':'
+#define wsSemicolon  ';'
+#define wsDblQuote   '\"'
+#define wsAcute      '\''
+#define wsComma      ','
+#define wsPoint      '.'
+#define wsQuestSign  '?'
+#define wsBSlash     '\\'
+#define wsPipe       '|'
+#define wsEqual      '='
+
 #define wsUp            0x52 + 256
 #define wsDown          0x54 + 256
 #define wsLeft          0x51 + 256

Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.158
retrieving revision 1.159
diff -u -r1.158 -r1.159
--- x11_common.c	21 Sep 2003 16:32:31 -0000	1.158
+++ x11_common.c	24 Sep 2003 07:38:57 -0000	1.159
@@ -520,6 +520,35 @@
    case wsM:	     mplayer_put_key('m'); break;
    case wso:
    case wsO:         mplayer_put_key('o'); break;
+
+   case wsGrave:      mplayer_put_key('`'); break;
+   case wsTilde:      mplayer_put_key('~'); break;
+   case wsExclSign:   mplayer_put_key('!'); break;
+   case wsAt:         mplayer_put_key('@'); break;
+   case wsHash:       mplayer_put_key('#'); break;
+   case wsDollar:     mplayer_put_key('$'); break;
+   case wsPercent:    mplayer_put_key('%'); break;
+   case wsCircumflex: mplayer_put_key('^'); break;
+   case wsAmpersand:  mplayer_put_key('&'); break;
+   case wsobracket:   mplayer_put_key('('); break;
+   case wscbracket:   mplayer_put_key(')'); break;
+   case wsUnder:      mplayer_put_key('_'); break;
+   case wsocbracket:  mplayer_put_key('{'); break;
+   case wsccbracket:  mplayer_put_key('}'); break;
+   case wsColon:      mplayer_put_key(':'); break;
+   case wsSemicolon:  mplayer_put_key(';'); break;
+   case wsDblQuote:   mplayer_put_key('\"'); break;
+   case wsAcute:      mplayer_put_key('\''); break;
+   case wsComma:      mplayer_put_key(','); break;
+   case wsPoint:      mplayer_put_key('.'); break;
+   case wsQuestSign:  mplayer_put_key('?'); break;
+   case wsBSlash:     mplayer_put_key('\\'); break;
+   case wsPipe:       mplayer_put_key('|'); break;
+   case wsEqual:      mplayer_put_key('='); break;
+   case wsosbrackets: mplayer_put_key('['); break;
+   case wscsbrackets: mplayer_put_key(']'); break;
+
+
    default: if((key>='a' && key<='z')||(key>='A' && key<='Z')||
 	       (key>='0' && key<='9')) mplayer_put_key(key);
   }



More information about the MPlayer-cvslog mailing list