diff --git a/FakeeDeck/ButtonType/Button.cs b/FakeeDeck/ButtonType/Button.cs
index a127e91..a7b1782 100644
--- a/FakeeDeck/ButtonType/Button.cs
+++ b/FakeeDeck/ButtonType/Button.cs
@@ -12,7 +12,7 @@ namespace FakeeDeck.ButtonType
{
return
"
" +
- "
" +
diff --git a/FakeeDeck/ButtonType/MediaMacro.cs b/FakeeDeck/ButtonType/MediaMacro.cs
new file mode 100644
index 0000000..171a01c
--- /dev/null
+++ b/FakeeDeck/ButtonType/MediaMacro.cs
@@ -0,0 +1,43 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace FakeeDeck.ButtonType
+{
+ internal class MediaMacro
+ {
+ public static Dictionary
mediaControls = new Dictionary
+ {
+ { "play/pause", new uint[] { 0xB3}},
+ { "mute", new uint[] { 0xAD }},
+ };
+
+ public static Dictionary mediaIcons = new Dictionary
+ {
+ { "play/pause", "fa-play"},
+ { "mute", "fa-volume-xmark"},
+ };
+
+ public static string getButton(string Key)
+ {
+ return
+ "" +
+ " " +
+ "
";
+ }
+
+ public static bool invokeAction(string control_action)
+ {
+ KeyboardMacro.SendKey(mediaControls[control_action][0]);
+ Console.WriteLine(control_action);
+ return true;
+ }
+ }
+}
diff --git a/FakeeDeck/HttpServer.cs b/FakeeDeck/HttpServer.cs
index 42d668d..7cc336f 100644
--- a/FakeeDeck/HttpServer.cs
+++ b/FakeeDeck/HttpServer.cs
@@ -119,8 +119,6 @@ namespace FakeeDeck
"