mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-09-30 14:04:55 -07:00
baa550037a
## Link to GitHub Issue or related Pull Request, if one exists Fixes #852 ## Description of change Add SDVX valk cab tape LED output over API ## Testing tested with custom python script over api
25 lines
582 B
C++
25 lines
582 B
C++
#pragma once
|
|
|
|
#include <functional>
|
|
#include <string>
|
|
|
|
#include "api/module.h"
|
|
#include "api/request.h"
|
|
#include "external/robin_hood.h"
|
|
#include "games/sdvx/sdvx.h"
|
|
|
|
namespace api::modules {
|
|
|
|
class SDVX : public Module {
|
|
public:
|
|
SDVX();
|
|
|
|
private:
|
|
robin_hood::unordered_map<std::string, std::reference_wrapper<tapeledutils::tape_led>> lights_by_names;
|
|
|
|
void tapeled_get(Request &req, Response &res);
|
|
void copy_tapeled_data(Response &res, rapidjson::Value &response_object,
|
|
const tapeledutils::tape_led &mapping);
|
|
};
|
|
}
|