input: add missing windows multimedia keys

x11 and wayland had a lot of multimedia keys mapped that were missing
on windows.
Now the only ones they map that windows doesn't are `MP_KEY_WWW`,
`MP_KEY_ZOOMIN` and `MP_KEY_ZOOMOUT`, which apparently don't have any
equivalent ones on windows.
This commit is contained in:
Christoph Heinrich 2023-08-25 02:27:23 +02:00 committed by Dudemanguy
parent f9918b5390
commit 8301906218
1 changed files with 10 additions and 1 deletions

View File

@ -44,7 +44,8 @@ static const struct keymap vk_map[] = {
// special keys
{VK_ESCAPE, MP_KEY_ESC}, {VK_BACK, MP_KEY_BS}, {VK_TAB, MP_KEY_TAB},
{VK_RETURN, MP_KEY_ENTER}, {VK_PAUSE, MP_KEY_PAUSE},
{VK_SNAPSHOT, MP_KEY_PRINT}, {VK_APPS, MP_KEY_MENU},
{VK_SLEEP, MP_KEY_SLEEP}, {VK_SNAPSHOT, MP_KEY_PRINT},
{VK_APPS, MP_KEY_MENU},
// F-keys
{VK_F1, MP_KEY_F+1}, {VK_F2, MP_KEY_F+2}, {VK_F3, MP_KEY_F+3},
@ -85,6 +86,14 @@ static const struct keymap appcmd_map[] = {
{APPCOMMAND_MEDIA_REWIND, MP_KEY_REWIND},
{APPCOMMAND_MEDIA_CHANNEL_UP, MP_KEY_CHANNEL_UP},
{APPCOMMAND_MEDIA_CHANNEL_DOWN, MP_KEY_CHANNEL_DOWN},
{APPCOMMAND_VOLUME_MUTE, MP_KEY_MUTE},
{APPCOMMAND_VOLUME_DOWN, MP_KEY_VOLUME_DOWN},
{APPCOMMAND_VOLUME_UP, MP_KEY_VOLUME_UP},
{APPCOMMAND_BROWSER_HOME, MP_KEY_HOMEPAGE},
{APPCOMMAND_LAUNCH_MAIL, MP_KEY_MAIL},
{APPCOMMAND_BROWSER_FAVORITES, MP_KEY_FAVORITES},
{APPCOMMAND_BROWSER_SEARCH, MP_KEY_SEARCH},
{APPCOMMAND_BROWSER_BACKWARD, MP_KEY_BACK},
{0, 0}
};