Support binding F11 and F12 keys to commands.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11794 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2004-01-16 17:31:38 +00:00
parent b32b5b31d1
commit 7ec1fd3d3e
6 changed files with 11 additions and 0 deletions

View File

@ -104,6 +104,8 @@
#define wsF8 0xc5 + 256
#define wsF9 0xc6 + 256
#define wsF10 0xc7 + 256
#define wsF11 0xc8 + 256
#define wsF12 0xc9 + 256
#define wsInsert 0x63 + 256
#define wsDelete 0xff + 256
#define wsHome 0x50 + 256

View File

@ -28,6 +28,7 @@ TwsKeyNames wsKeyNames[ wsKeyNumber ] =
{ wsF1, "F1" }, { wsF2, "F2" }, { wsF3, "F3" }, { wsF4, "F4" }, { wsF5, "F5" },
{ wsF6, "F6" }, { wsF7, "F7" }, { wsF8, "F8" }, { wsF9, "F9" }, { wsF10, "F10" },
{ wsF11, "F11" }, { wsF12, "F12" },
{ wsEnter, "Enter" }, { wsTab, "Tab" }, { wsSpace, "Space" },
{ wsInsert, "Insert" }, { wsDelete, "Delete" }, { wsHome, "Home" },

View File

@ -166,6 +166,8 @@ static mp_key_name_t key_names[] = {
{ KEY_F+8, "F8" },
{ KEY_F+9, "F9" },
{ KEY_F+10, "F10" },
{ KEY_F+11, "F11" },
{ KEY_F+12, "F12" },
{ KEY_KP0, "KP0" },
{ KEY_KP1, "KP1" },
{ KEY_KP2, "KP2" },

View File

@ -1271,6 +1271,8 @@ static void check_events (void)
case SDLK_F8: mplayer_put_key(KEY_F+8);break;
case SDLK_F9: mplayer_put_key(KEY_F+9);break;
case SDLK_F10: mplayer_put_key(KEY_F+10);break;
case SDLK_F11: mplayer_put_key(KEY_F+11);break;
case SDLK_F12: mplayer_put_key(KEY_F+12);break;
/*case SDLK_o: mplayer_put_key('o');break;
case SDLK_SPACE: mplayer_put_key(' ');break;
case SDLK_p: mplayer_put_key('p');break;*/

View File

@ -114,6 +114,8 @@
#define wsF8 0xc5 + 256
#define wsF9 0xc6 + 256
#define wsF10 0xc7 + 256
#define wsF11 0xc8 + 256
#define wsF12 0xc9 + 256
#define wsInsert 0x63 + 256
#define wsDelete 0xff + 256
#define wsHome 0x50 + 256

View File

@ -479,6 +479,8 @@ void vo_x11_putkey(int key){
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 wsF11: mplayer_put_key(KEY_F+11); break;
case wsF12: mplayer_put_key(KEY_F+12); break;
case wsq:
case wsQ: mplayer_put_key('q'); break;
case wsp: