mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user