Let us start here, from square one. No, from Zero!

This commit is contained in:
smpn2
2022-09-30 22:45:51 +09:00
parent 14215af0d1
commit b7a60638a4
1005 changed files with 303069 additions and 0 deletions
+66
View File
@@ -0,0 +1,66 @@
#include "io.h"
std::vector<Button> &games::sc::get_buttons() {
static std::vector<Button> buttons;
if (buttons.empty()) {
buttons = GameAPI::Buttons::getButtons("Steel Chronicle");
GameAPI::Buttons::sortButtons(
&buttons,
"Service",
"Test",
"Coin Mech",
"L1 Button",
"L2 Button",
"L Stick Button",
"R1 Button",
"R2 Button",
"R Stick Button",
"Jog Switch Left",
"Jog Switch Right"
);
}
return buttons;
}
std::vector<Analog> &games::sc::get_analogs() {
static std::vector<Analog> analogs;
if (analogs.empty()) {
analogs = GameAPI::Analogs::getAnalogs("Steel Chronicle");
GameAPI::Analogs::sortAnalogs(
&analogs,
"Left Stick X",
"Left Stick Y",
"Right Stick X",
"Right Stick Y"
);
}
return analogs;
}
std::vector<Light> &games::sc::get_lights() {
static std::vector<Light> lights;
if (lights.empty()) {
lights = GameAPI::Lights::getLights("Steel Chronicle");
GameAPI::Lights::sortLights(
&lights,
"Center Red",
"Center Green",
"Center Blue",
"Side Red",
"Side Green",
"Side Blue",
"Controller Red",
"Controller Blue"
);
}
return lights;
}