mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-07 11:31:39 +12:00
Add /input command in http server
This commit is contained in:
parent
0949a16e6f
commit
77ea84373f
2 changed files with 87 additions and 5 deletions
|
@ -17,7 +17,7 @@
|
|||
|
||||
enum class ROMType { None, ELF, NCSD, CXI };
|
||||
|
||||
enum class HttpAction { None, Screenshot };
|
||||
enum class HttpAction { None, Screenshot, PressKey, ReleaseKey };
|
||||
|
||||
class Emulator {
|
||||
CPU cpu;
|
||||
|
@ -52,6 +52,7 @@ class Emulator {
|
|||
std::atomic_bool pendingAction = false;
|
||||
HttpAction action = HttpAction::None;
|
||||
std::mutex actionMutex = {};
|
||||
u32 pendingKey = 0;
|
||||
#endif
|
||||
|
||||
// Keep the handle for the ROM here to reload when necessary and to prevent deleting it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue