feat: WASM based web simulator (#7164)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
a2aeab9234
commit
b2fb79d9f4
@@ -33,6 +33,8 @@
|
||||
#include "debug.h"
|
||||
#include "switches.h"
|
||||
#include "input_mapping.h"
|
||||
#include "gui/gui_common.h"
|
||||
#include "mixes.h"
|
||||
#if defined(GVARS)
|
||||
#include "gvars.h"
|
||||
#endif
|
||||
@@ -54,6 +56,7 @@ char * main_thread_error = nullptr;
|
||||
|
||||
bool simu_shutdown = false;
|
||||
bool simu_running = false;
|
||||
bool simuCreateDefaultSettings = false;
|
||||
|
||||
|
||||
volatile rotenc_t rotencValue = 0;
|
||||
@@ -115,6 +118,11 @@ static void* bootloaderThread(void*)
|
||||
}
|
||||
#endif
|
||||
|
||||
void simuCreateDefaults()
|
||||
{
|
||||
simuCreateDefaultSettings = true;
|
||||
}
|
||||
|
||||
void simuStart(bool tests)
|
||||
{
|
||||
if (simu_running)
|
||||
@@ -759,6 +767,21 @@ uint8_t simuCopyMixOutputs(int16_t* buf, uint8_t maxCount)
|
||||
return n;
|
||||
}
|
||||
|
||||
bool simuIsChannelUsed(uint8_t channel)
|
||||
{
|
||||
return isChannelUsed(channel);
|
||||
}
|
||||
|
||||
int simuGetChannelsUsed()
|
||||
{
|
||||
return getChannelsUsed();
|
||||
}
|
||||
|
||||
uint8_t simuGetMixCount()
|
||||
{
|
||||
return getMixCount();
|
||||
}
|
||||
|
||||
uint8_t simuGetNumLogicalSwitches()
|
||||
{
|
||||
return MAX_LOGICAL_SWITCHES;
|
||||
|
||||
Reference in New Issue
Block a user