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.
This commit is contained in:
der richter 2020-01-21 19:15:51 +01:00
parent ae0520cafc
commit 77d42d5532
3 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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" },

View File

@ -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)