[MPlayer-cvslog] r33609 - in trunk/libvo: wskeys.h x11_common.c

diego subversion at mplayerhq.hu
Tue Jun 14 14:13:48 CEST 2011


Author: diego
Date: Tue Jun 14 14:13:47 2011
New Revision: 33609

Log:
Allow Pause/Break key to be bound as MPlayer input key under X11.
patch by Steaphan Greene, sgreene cs.binghamton edu

Modified:
   trunk/libvo/wskeys.h
   trunk/libvo/x11_common.c

Modified: trunk/libvo/wskeys.h
==============================================================================
--- trunk/libvo/wskeys.h	Mon Jun 13 21:39:18 2011	(r33608)
+++ trunk/libvo/wskeys.h	Tue Jun 14 14:13:47 2011	(r33609)
@@ -19,6 +19,7 @@
 #ifndef MPLAYER_WSKEYS_H
 #define MPLAYER_WSKEYS_H
 
+#define wsPause         0x13 + 256
 #define wsUp            0x52 + 256
 #define wsDown          0x54 + 256
 #define wsLeft          0x51 + 256

Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c	Mon Jun 13 21:39:18 2011	(r33608)
+++ trunk/libvo/x11_common.c	Tue Jun 14 14:13:47 2011	(r33609)
@@ -570,7 +570,8 @@ static void vo_x11_putkey_ext(int keysym
 
 static const struct mp_keymap keymap[] = {
     // special keys
-    {wsEscape, KEY_ESC}, {wsBackSpace, KEY_BS}, {wsTab, KEY_TAB}, {wsEnter, KEY_ENTER},
+    {wsPause, KEY_PAUSE}, {wsEscape, KEY_ESC}, {wsBackSpace, KEY_BS},
+    {wsTab, KEY_TAB}, {wsEnter, KEY_ENTER},
 
     // cursor keys
     {wsLeft, KEY_LEFT}, {wsRight, KEY_RIGHT}, {wsUp, KEY_UP}, {wsDown, KEY_DOWN},


More information about the MPlayer-cvslog mailing list