Mercurial > mplayer.hg
changeset 10936:51bc09f2977c
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
will work now.
author | lumag |
---|---|
date | Wed, 24 Sep 2003 07:38:57 +0000 |
parents | ec8a1e6443d5 |
children | 384f6a88a31d |
files | libvo/wskeys.h libvo/x11_common.c |
diffstat | 2 files changed, 54 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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); }