Progression
This commit is contained in:
@@ -9,6 +9,8 @@ namespace FakeeDeck.ButtonType
|
||||
{
|
||||
internal class KeyboardMacro
|
||||
{
|
||||
//https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
|
||||
|
||||
[DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
|
||||
public static extern void keybd_event(uint bVk, uint bScan, uint dwFlags, uint dwExtraInfo);
|
||||
|
||||
|
@@ -12,12 +12,17 @@ namespace FakeeDeck.ButtonType
|
||||
{
|
||||
{ "play/pause", new uint[] { 0xB3}},
|
||||
{ "mute", new uint[] { 0xAD }},
|
||||
{ "next", new uint[] { 0xB0 }},
|
||||
{ "previous", new uint[] { 0xB1 }},
|
||||
|
||||
};
|
||||
|
||||
public static Dictionary<string, string> mediaIcons = new Dictionary<string, string>
|
||||
{
|
||||
{ "play/pause", "fa-play"},
|
||||
{ "mute", "fa-volume-xmark"},
|
||||
{ "next", "fa-forward"},
|
||||
{ "previous", "fa-backward"},
|
||||
};
|
||||
|
||||
public static string getButton(string Key)
|
||||
|
@@ -57,4 +57,22 @@ pages:
|
||||
function: MediaMacro
|
||||
parameters:
|
||||
- name: Key
|
||||
value: "mute"
|
||||
value: "mute"
|
||||
|
||||
- button: mute
|
||||
function: MediaMacro
|
||||
parameters:
|
||||
- name: Key
|
||||
value: "previous"
|
||||
|
||||
- button: mute
|
||||
function: MediaMacro
|
||||
parameters:
|
||||
- name: Key
|
||||
value: "play/pause"
|
||||
|
||||
- button: mute
|
||||
function: MediaMacro
|
||||
parameters:
|
||||
- name: Key
|
||||
value: "next"
|
Reference in New Issue
Block a user