| 47 | } |
| 48 | |
| 49 | void JsonConsole::init() FL_NOEXCEPT { |
| 50 | // Set up JsonUI handlers - we capture component data but don't send it anywhere |
| 51 | mUpdateEngineState = setJsonUiHandlers([this](const char* jsonStr) { |
| 52 | this->processJsonFromUI(jsonStr); |
| 53 | }); |
| 54 | |
| 55 | if (!mUpdateEngineState) { |
| 56 | FL_WARN("JsonConsole::init: Failed to set up JsonUI handlers"); |
| 57 | return; |
| 58 | } |
| 59 | |
| 60 | writeOutput("JsonConsole initialized. Type 'help' for commands."); |
| 61 | } |
| 62 | |
| 63 | void JsonConsole::update() FL_NOEXCEPT { |
| 64 | if (!mUpdateEngineState) { |
nothing calls this directly
no test coverage detected