From d6e34fe91a5bf8a7a65e1e9ee7837612241f8ce8 Mon Sep 17 00:00:00 2001 From: diego Date: Tue, 14 Jun 2011 12:13:47 +0000 Subject: [PATCH] VO: support Pause/Break key in X11 input Allow Pause/Break key to be bound as MPlayer input key under X11. patch by Steaphan Greene, sgreene cs.binghamton edu git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33609 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/wskeys.h | 1 + libvo/x11_common.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libvo/wskeys.h b/libvo/wskeys.h index ef372e5c7f..10d9b8b4e4 100644 --- a/libvo/wskeys.h +++ b/libvo/wskeys.h @@ -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 diff --git a/libvo/x11_common.c b/libvo/x11_common.c index c576839ddb..0a193fb0d3 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -550,7 +550,8 @@ static void vo_x11_putkey_ext(struct vo *vo, int keysym, int modifiers) 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},