mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
be388f7b49
## Link to GitHub Issue or related Pull Request, if one exists related to #154 though this PR doesn't fix it ## Description of change 1. Add an option for cam hook so that the game can be launched without any camera 1. Rotate image printed out by print-to-file so that it's right side up (portrait orientation) ## Testing Able to boot the game without any cameras, and tested printing in test menu. "Holo" printing remains broken.
46 lines
1.0 KiB
C++
46 lines
1.0 KiB
C++
#include "io.h"
|
|
|
|
std::vector<Button> &games::otoca::get_buttons() {
|
|
static std::vector<Button> buttons;
|
|
|
|
if (buttons.empty()) {
|
|
buttons = GameAPI::Buttons::getButtons("Otoca D'or");
|
|
|
|
GameAPI::Buttons::sortButtons(
|
|
&buttons,
|
|
"Service",
|
|
"Test",
|
|
"Coin Mech",
|
|
"Button Left",
|
|
"Button Right",
|
|
"Lever Up",
|
|
"Lever Down",
|
|
"Lever Left",
|
|
"Lever Right"
|
|
);
|
|
}
|
|
|
|
return buttons;
|
|
}
|
|
|
|
std::string games::otoca::get_buttons_help() {
|
|
// keep to max 100 characters wide
|
|
return " BT_Left Lever BT_Right";
|
|
}
|
|
|
|
std::vector<Light> &games::otoca::get_lights() {
|
|
static std::vector<Light> lights;
|
|
|
|
if (lights.empty()) {
|
|
lights = GameAPI::Lights::getLights("Otoca D'or");
|
|
|
|
GameAPI::Lights::sortLights(
|
|
&lights,
|
|
"Left Button",
|
|
"Right Button"
|
|
);
|
|
}
|
|
|
|
return lights;
|
|
}
|