mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 21:06:00 +00:00
Get more keys from X window (punctuation, etc.) Hopefully, all alnum keys
will work now. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10937 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6ebdf741f7
commit
3edb02e5e4
@ -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
|
||||
|
@ -520,6 +520,35 @@ void vo_x11_putkey(int key){
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user