From 77d42d5532c2f411da1b1e054b1a867498c7187d Mon Sep 17 00:00:00 2001 From: der richter Date: Tue, 21 Jan 2020 19:15:51 +0100 Subject: input: add new PLAYONLY and PAUSEONLY MP_KEY key codes since the old PLAY and PAUSE key codes cycle through the pause property, the new key codes only explicitly set the pause property. --- etc/input.conf | 2 ++ input/keycodes.c | 2 ++ input/keycodes.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/etc/input.conf b/etc/input.conf index 9c870ea42b..2130ffa847 100644 --- a/etc/input.conf +++ b/etc/input.conf @@ -149,6 +149,8 @@ #PLAY cycle pause #PAUSE cycle pause #PLAYPAUSE cycle pause +#PLAYONLY set pause no +#PAUSEONLY set pause yes #STOP quit #FORWARD seek 60 #REWIND seek -60 diff --git a/input/keycodes.c b/input/keycodes.c index bcf59c74a1..bb92994479 100644 --- a/input/keycodes.c +++ b/input/keycodes.c @@ -151,6 +151,8 @@ static const struct key_name key_names[] = { { MP_KEY_RECORD, "RECORD" }, { MP_KEY_CHANNEL_UP, "CHANNEL_UP" }, { MP_KEY_CHANNEL_DOWN,"CHANNEL_DOWN" }, + { MP_KEY_PLAYONLY, "PLAYONLY" }, + { MP_KEY_PAUSEONLY, "PAUSEONLY" }, // These are kept for backward compatibility { MP_KEY_PAUSE, "XF86_PAUSE" }, diff --git a/input/keycodes.h b/input/keycodes.h index a75099f2f2..3a33258031 100644 --- a/input/keycodes.h +++ b/input/keycodes.h @@ -80,6 +80,8 @@ #define MP_KEY_RECORD (MP_KEY_MM_BASE+20) #define MP_KEY_CHANNEL_UP (MP_KEY_MM_BASE+21) #define MP_KEY_CHANNEL_DOWN (MP_KEY_MM_BASE+22) +#define MP_KEY_PLAYONLY (MP_KEY_MM_BASE+23) +#define MP_KEY_PAUSEONLY (MP_KEY_MM_BASE+24) /* Function keys */ #define MP_KEY_F (MP_KEY_BASE+0x40) -- cgit v1.2.3