Add new HTTP(anda) commands
This commit is contained in:
@@ -92,6 +92,7 @@ class Emulator {
|
||||
|
||||
void resume(); // Resume the emulator
|
||||
void pause(); // Pause the emulator
|
||||
void togglePause();
|
||||
|
||||
bool loadROM(const std::filesystem::path& path);
|
||||
bool loadNCSD(const std::filesystem::path& path, ROMType type);
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
#include "helpers.hpp"
|
||||
|
||||
enum class HttpActionType { None, Screenshot, Key };
|
||||
enum class HttpActionType { None, Screenshot, Key, TogglePause, Reset };
|
||||
|
||||
class Emulator;
|
||||
namespace httplib {
|
||||
@@ -42,6 +42,8 @@ class HttpAction {
|
||||
|
||||
static std::unique_ptr<HttpAction> createScreenshotAction(DeferredResponseWrapper& response);
|
||||
static std::unique_ptr<HttpAction> createKeyAction(uint32_t key, bool state);
|
||||
static std::unique_ptr<HttpAction> createTogglePauseAction();
|
||||
static std::unique_ptr<HttpAction> createResetAction();
|
||||
};
|
||||
|
||||
struct HttpServer {
|
||||
|
||||
Reference in New Issue
Block a user