mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 15:22:09 +00:00
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:
parent
ae0520cafc
commit
77d42d5532
@ -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
|
||||
|
@ -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" },
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user