mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-25 16:11:49 +01:00
Made sure to add extended key flag for more multimedia keys
This commit is contained in:
parent
e0aaa37493
commit
1f8dcaa2ee
@ -186,6 +186,9 @@ namespace DS4Windows
|
|||||||
case VK_NUMLOCK:
|
case VK_NUMLOCK:
|
||||||
case VK_RCONTROL:
|
case VK_RCONTROL:
|
||||||
case VK_RMENU:
|
case VK_RMENU:
|
||||||
|
case VK_VOLUME_MUTE:
|
||||||
|
case VK_VOLUME_DOWN:
|
||||||
|
case VK_VOLUME_UP:
|
||||||
case VK_MEDIA_NEXT_TRACK:
|
case VK_MEDIA_NEXT_TRACK:
|
||||||
case VK_MEDIA_PREV_TRACK:
|
case VK_MEDIA_PREV_TRACK:
|
||||||
{
|
{
|
||||||
@ -271,8 +274,9 @@ namespace DS4Windows
|
|||||||
|
|
||||||
internal const uint VK_PAUSE = 0x13, VK_LEFT = 0x25, VK_UP = 0x26, VK_RIGHT = 0x27, VK_DOWN = 0x28,
|
internal const uint VK_PAUSE = 0x13, VK_LEFT = 0x25, VK_UP = 0x26, VK_RIGHT = 0x27, VK_DOWN = 0x28,
|
||||||
VK_PRIOR = 0x21, VK_NEXT = 0x22, VK_END = 0x23, VK_HOME = 0x24, VK_INSERT = 0x2D, VK_DELETE = 0x2E,
|
VK_PRIOR = 0x21, VK_NEXT = 0x22, VK_END = 0x23, VK_HOME = 0x24, VK_INSERT = 0x2D, VK_DELETE = 0x2E,
|
||||||
VK_DIVIDE = 0x6F, VK_NUMLOCK = 0x90, VK_RCONTROL = 0xAE, VK_RMENU = 0xA5, VK_MEDIA_NEXT_TRACK = 0xB0,
|
VK_DIVIDE = 0x6F, VK_NUMLOCK = 0x90, VK_RCONTROL = 0xA3, VK_RMENU = 0xA5,
|
||||||
VK_MEDIA_PREV_TRACK = 0xB1;
|
VK_VOLUME_MUTE = 0xAD, VK_VOLUME_DOWN = 0xAE, VK_VOLUME_UP = 0xAF,
|
||||||
|
VK_MEDIA_NEXT_TRACK = 0xB0, VK_MEDIA_PREV_TRACK = 0xB1, VK_MEDIA_STOP = 0xB2, VK_MEDIA_PLAY_PAUSE = 0xB3;
|
||||||
|
|
||||||
[DllImport("user32.dll", SetLastError = true)]
|
[DllImport("user32.dll", SetLastError = true)]
|
||||||
private static extern uint SendInput(uint numberOfInputs, INPUT[] inputs, int sizeOfInputs);
|
private static extern uint SendInput(uint numberOfInputs, INPUT[] inputs, int sizeOfInputs);
|
||||||
|
Loading…
Reference in New Issue
Block a user