Progression

This commit is contained in:
2024-09-12 13:20:36 -07:00
parent 14877f4711
commit b0bc2fead2
17 changed files with 26 additions and 1012 deletions

View File

@@ -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);

View File

@@ -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)

View File

@@ -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"