# HG changeset patch # User lumag # Date 1064389137 0 # Node ID 51bc09f2977c775ba200e8902717fcf09cf50a66 # Parent ec8a1e6443d593952d257a93c6ac3b4460af7e6a Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys will work now. diff -r ec8a1e6443d5 -r 51bc09f2977c libvo/wskeys.h --- a/libvo/wskeys.h Wed Sep 24 07:35:59 2003 +0000 +++ b/libvo/wskeys.h Wed Sep 24 07:38:57 2003 +0000 @@ -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 diff -r ec8a1e6443d5 -r 51bc09f2977c libvo/x11_common.c --- a/libvo/x11_common.c Wed Sep 24 07:35:59 2003 +0000 +++ b/libvo/x11_common.c Wed Sep 24 07:38:57 2003 +0000 @@ -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); }