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
+70
View File
@@ -0,0 +1,70 @@
#pragma once
#include <vector>
#include "cfg/api.h"
namespace games::we {
// all buttons in correct order
namespace Buttons {
enum {
Service,
Test,
CoinMech,
Start,
Up,
Down,
Left,
Right,
ButtonA,
ButtonB,
ButtonC,
ButtonD,
ButtonE,
ButtonF,
PadStart,
PadSelect,
PadUp,
PadDown,
PadLeft,
PadRight,
PadTriangle,
PadCross,
PadSquare,
PadCircle,
PadL1,
PadL2,
PadL3,
PadR1,
PadR2,
PadR3,
};
}
// all analogs in correct order
namespace Analogs {
enum {
PadStickLeftX,
PadStickLeftY,
PadStickRightX,
PadStickRightY,
};
}
// all lights in correct order
namespace Lights {
enum {
LeftRed,
LeftGreen,
LeftBlue,
RightRed,
RightGreen,
RightBlue,
};
}
// getters
std::vector<Button> &get_buttons();
std::vector<Analog> &get_analogs();
std::vector<Light> &get_lights();
}