mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-08 15:15:40 +12:00
19 lines
No EOL
390 B
C++
19 lines
No EOL
390 B
C++
#pragma once
|
|
|
|
#include <atomic>
|
|
#include <mutex>
|
|
#include "helpers.hpp"
|
|
|
|
enum class HttpAction { None, Screenshot, PressKey, ReleaseKey };
|
|
|
|
constexpr const char* httpServerScreenshotPath = "screenshot.png";
|
|
|
|
struct HttpServer
|
|
{
|
|
std::atomic_bool pendingAction = false;
|
|
HttpAction action = HttpAction::None;
|
|
std::mutex actionMutex = {};
|
|
u32 pendingKey = 0;
|
|
|
|
void startHttpServer();
|
|
}; |