mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-11-30 19:16:41 -08:00
add card connect support (#923)
There are no servers to test this, but: * touch, touch with mouse * in theory card reader should work * printer works (RGB, front and back) * test/service button, lights What is (painfully) missing: * windowed mode Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
cf5d87d4d5
commit
fdc7adff7f
22 files changed
+1358
-79
No files matched your search
@@ -0,0 +1,40 @@
|
||||
#include "io.h"
|
||||
|
||||
std::vector<Button> &games::cardconnect::get_buttons() {
|
||||
static std::vector<Button> buttons;
|
||||
|
||||
if (buttons.empty()) {
|
||||
buttons = GameAPI::Buttons::getButtons("Card Connect");
|
||||
GameAPI::Buttons::sortButtons(
|
||||
&buttons,
|
||||
"Test",
|
||||
"Service",
|
||||
"Coin Mech"
|
||||
);
|
||||
}
|
||||
|
||||
return buttons;
|
||||
}
|
||||
|
||||
std::vector<Light> &games::cardconnect::get_lights() {
|
||||
static std::vector<Light> lights;
|
||||
|
||||
if (lights.empty()) {
|
||||
lights = GameAPI::Lights::getLights("Card Connect");
|
||||
GameAPI::Lights::sortLights(
|
||||
&lights,
|
||||
"Photo Light",
|
||||
"Card Reader R",
|
||||
"Card Reader G",
|
||||
"Card Reader B",
|
||||
"Side Left R",
|
||||
"Side Left G",
|
||||
"Side Left B",
|
||||
"Side Right R",
|
||||
"Side Right G",
|
||||
"Side Right B"
|
||||
);
|
||||
}
|
||||
|
||||
return lights;
|
||||
}
|
||||
Reference in new issue
Block a user