summaryrefslogtreecommitdiffstats
path: root/libvo/x11_common.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-09 17:05:39 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-09 17:05:39 +0000
commit2b1f95dcc2f80cd148ab9e70b9a3bece92541d59 (patch)
tree6e6621d472bd61b51521ee033f8f3db316b85bba /libvo/x11_common.c
parent0884192c18cfef6e2a7c0be0e8b55a592ff4748d (diff)
downloadmpv-2b1f95dcc2f80cd148ab9e70b9a3bece92541d59.tar.bz2
mpv-2b1f95dcc2f80cd148ab9e70b9a3bece92541d59.tar.xz
keypad and function (f1-f10) suppport (currently only vo_sdl and the terminal input code supports it). Patch by Vladimir Mosgalin <mosgalin@VM10124.spb.edu>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9892 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r--libvo/x11_common.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 820bad441a..9d35dc2d5e 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -434,6 +434,16 @@ void vo_x11_putkey(int key){
case wsEnd: mplayer_put_key(KEY_END); break;
case wsPageUp: mplayer_put_key(KEY_PAGE_UP); break;
case wsPageDown: mplayer_put_key(KEY_PAGE_DOWN); break;
+ case wsF1: mplayer_put_key(KEY_F+1); break;
+ case wsF2: mplayer_put_key(KEY_F+2); break;
+ case wsF3: mplayer_put_key(KEY_F+3); break;
+ case wsF4: mplayer_put_key(KEY_F+4); break;
+ case wsF5: mplayer_put_key(KEY_F+5); break;
+ case wsF6: mplayer_put_key(KEY_F+6); break;
+ case wsF7: mplayer_put_key(KEY_F+7); break;
+ case wsF8: mplayer_put_key(KEY_F+8); break;
+ case wsF9: mplayer_put_key(KEY_F+9); break;
+ case wsF10: mplayer_put_key(KEY_F+10); break;
case wsq:
case wsQ: mplayer_put_key('q'); break;
case wsp:
@@ -448,6 +458,29 @@ void vo_x11_putkey(int key){
case wsDiv: mplayer_put_key('/'); break;
case wsLess: mplayer_put_key('<'); break;
case wsMore: mplayer_put_key('>'); break;
+ case wsGray0: mplayer_put_key(KEY_KP0); break;
+ case wsGrayEnd:
+ case wsGray1: mplayer_put_key(KEY_KP1); break;
+ case wsGrayDown:
+ case wsGray2: mplayer_put_key(KEY_KP2); break;
+ case wsGrayPgDn:
+ case wsGray3: mplayer_put_key(KEY_KP3); break;
+ case wsGrayLeft:
+ case wsGray4: mplayer_put_key(KEY_KP4); break;
+ case wsGray5Dup:
+ case wsGray5: mplayer_put_key(KEY_KP5); break;
+ case wsGrayRight:
+ case wsGray6: mplayer_put_key(KEY_KP6); break;
+ case wsGrayHome:
+ case wsGray7: mplayer_put_key(KEY_KP7); break;
+ case wsGrayUp:
+ case wsGray8: mplayer_put_key(KEY_KP8); break;
+ case wsGrayPgUp:
+ case wsGray9: mplayer_put_key(KEY_KP9); break;
+ case wsGrayDecimal: mplayer_put_key(KEY_KPDEC); break;
+ case wsGrayInsert: mplayer_put_key(KEY_KPINS); break;
+ case wsGrayDelete: mplayer_put_key(KEY_KPDEL); break;
+ case wsGrayEnter: mplayer_put_key(KEY_KPENTER); break;
case wsm:
case wsM: mplayer_put_key('m'); break;
case wso: