changeset 33521:8966911e5233

Allow Pause/Break key to be bound as MPlayer input key under X11. patch by Steaphan Greene, sgreene cs.binghamton edu
author diego
date Tue, 14 Jun 2011 12:13:47 +0000
parents 2df1a5fee8a7
children 766bdb696911
files libvo/wskeys.h libvo/x11_common.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/wskeys.h	Mon Jun 13 19:39:18 2011 +0000
+++ b/libvo/wskeys.h	Tue Jun 14 12:13:47 2011 +0000
@@ -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
--- a/libvo/x11_common.c	Mon Jun 13 19:39:18 2011 +0000
+++ b/libvo/x11_common.c	Tue Jun 14 12:13:47 2011 +0000
@@ -570,7 +570,8 @@
 
 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},