changeset 11793:faa111ce1315

Support binding F11 and F12 keys to commands.
author diego
date Fri, 16 Jan 2004 17:31:38 +0000
parents eefc63bdafd4
children 93f616ec5e98
files Gui/wm/wskeys.h Gui/wm/wsmkeys.h input/input.c libvo/vo_sdl.c libvo/wskeys.h libvo/x11_common.c
diffstat 6 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/wm/wskeys.h	Fri Jan 16 05:44:03 2004 +0000
+++ b/Gui/wm/wskeys.h	Fri Jan 16 17:31:38 2004 +0000
@@ -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
--- a/Gui/wm/wsmkeys.h	Fri Jan 16 05:44:03 2004 +0000
+++ b/Gui/wm/wsmkeys.h	Fri Jan 16 17:31:38 2004 +0000
@@ -28,6 +28,7 @@
 
   { 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" },
--- a/input/input.c	Fri Jan 16 05:44:03 2004 +0000
+++ b/input/input.c	Fri Jan 16 17:31:38 2004 +0000
@@ -166,6 +166,8 @@
   { 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" },
--- a/libvo/vo_sdl.c	Fri Jan 16 05:44:03 2004 +0000
+++ b/libvo/vo_sdl.c	Fri Jan 16 17:31:38 2004 +0000
@@ -1271,6 +1271,8 @@
  				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;*/
--- a/libvo/wskeys.h	Fri Jan 16 05:44:03 2004 +0000
+++ b/libvo/wskeys.h	Fri Jan 16 17:31:38 2004 +0000
@@ -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
--- a/libvo/x11_common.c	Fri Jan 16 05:44:03 2004 +0000
+++ b/libvo/x11_common.c	Fri Jan 16 17:31:38 2004 +0000
@@ -479,6 +479,8 @@
    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: