add common changes

This commit is contained in:
GPUCode
2023-05-14 00:46:39 +03:00
parent e44ec20e57
commit a24cac6308
6 changed files with 968 additions and 4 deletions

View File

@ -82,10 +82,10 @@ enum Values {
B,
X,
Y,
Up,
Down,
Left,
Right,
DUp,
DDown,
DLeft,
DRight,
L,
R,
Start,
@ -148,6 +148,21 @@ constexpr std::array<const char*, NumAnalogs> mapping = {{
}};
} // namespace NativeAnalog
namespace NativeMotion {
enum Values : int {
MotionLeft,
MotionRight,
NumMotions,
};
constexpr int MOTION_HID_BEGIN = MotionLeft;
constexpr int MOTION_HID_END = NumMotions;
constexpr int NUM_MOTIONS_HID = NumMotions;
extern const std::array<const char*, NumMotions> mapping;
} // namespace NativeMotion
/** The Setting class is a simple resource manager. It defines a label and default value alongside
* the actual value of the setting for simpler and less-error prone use with frontend
* configurations. Specifying a default value and label is required. A minimum and maximum range can