Media Buttons

This commit is contained in:
JonatanRek committed 2024-09-09 12:11:36 -07:00
1 parent d66abc1f07
commit b26a183624
3 files changed
+50 -4

No files matched your search

+6 -3
View File
@@ -119,8 +119,6 @@ namespace FakeeDeck
"</html>";
public static string pageData = "";
public static async Task HandleIncomingConnections()
{
bool runServer = true;
@@ -143,6 +141,7 @@ namespace FakeeDeck
Console.WriteLine(req.UserAgent);
Console.WriteLine();
//Parse Port Parameters
Dictionary<string, string> postParams = new Dictionary<string, string>();
if (req.HttpMethod == "POST")
{
@@ -171,7 +170,6 @@ namespace FakeeDeck
{
string module = req.Url.AbsolutePath.Replace("/button", "");
Console.WriteLine("Call module " + module);
Console.WriteLine(postParams["stratogem"]);
callButtonAction(module, postParams);
@@ -265,6 +263,11 @@ namespace FakeeDeck
pageData += HelldiversTwoMacro.getButton(stratogem.Key);
}
foreach (var control in MediaMacro.mediaControls)
{
pageData += MediaMacro.getButton(control.Key);
}
// Create a Http server and start listening for incoming connections
listener = new HttpListener();
listener.Prefixes.Add(url);