mirror of
https://git.steelants.cz/JonatanRek/FakeDeck.git
synced 2026-10-12 01:34:37 +00:00
Media Buttons
This commit is contained in:
1 parent
d66abc1f07
commit
b26a183624
3 files changed
+50
-4
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user