Let us start here, from square one. No, from Zero!
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
#include "io.h"
|
||||
|
||||
std::vector<Button> &games::ftt::get_buttons() {
|
||||
static std::vector<Button> buttons;
|
||||
|
||||
if (buttons.empty()) {
|
||||
buttons = GameAPI::Buttons::getButtons("FutureTomTom");
|
||||
|
||||
GameAPI::Buttons::sortButtons(
|
||||
&buttons,
|
||||
"Service",
|
||||
"Test",
|
||||
"Pad 1",
|
||||
"Pad 2",
|
||||
"Pad 3",
|
||||
"Pad 4"
|
||||
);
|
||||
}
|
||||
|
||||
return buttons;
|
||||
}
|
||||
|
||||
std::vector<Analog> &games::ftt::get_analogs() {
|
||||
static std::vector<Analog> analogs;
|
||||
|
||||
if (analogs.empty()) {
|
||||
analogs = GameAPI::Analogs::getAnalogs("FutureTomTom");
|
||||
|
||||
GameAPI::Analogs::sortAnalogs(
|
||||
&analogs,
|
||||
"Pad 1",
|
||||
"Pad 2",
|
||||
"Pad 3",
|
||||
"Pad 4"
|
||||
);
|
||||
}
|
||||
|
||||
return analogs;
|
||||
}
|
||||
|
||||
std::vector<Light> &games::ftt::get_lights() {
|
||||
static std::vector<Light> lights;
|
||||
|
||||
if (lights.empty()) {
|
||||
lights = GameAPI::Lights::getLights("FutureTomTom");
|
||||
|
||||
GameAPI::Lights::sortLights(
|
||||
&lights,
|
||||
"Pad 1 Red",
|
||||
"Pad 1 Green",
|
||||
"Pad 1 Blue",
|
||||
"Pad 2 Red",
|
||||
"Pad 2 Green",
|
||||
"Pad 2 Blue",
|
||||
"Pad 3 Red",
|
||||
"Pad 3 Green",
|
||||
"Pad 3 Blue",
|
||||
"Pad 4 Red",
|
||||
"Pad 4 Green",
|
||||
"Pad 4 Blue"
|
||||
);
|
||||
}
|
||||
|
||||
return lights;
|
||||
}
|
||||
Reference in New Issue
Block a user