mirror of https://github.com/mgba-emu/mgba.git
GBA Input: Add key names
This commit is contained in:
parent
16bf77659f
commit
a9106d526c
|
@ -21,6 +21,19 @@ struct GBAInputMapImpl {
|
|||
struct Table axes;
|
||||
};
|
||||
|
||||
const char* GBAKeyNames[] = {
|
||||
"A",
|
||||
"B",
|
||||
"Select",
|
||||
"Start",
|
||||
"Right",
|
||||
"Left",
|
||||
"Up",
|
||||
"Down",
|
||||
"R",
|
||||
"L"
|
||||
};
|
||||
|
||||
static bool _getIntValue(const struct Configuration* config, const char* section, const char* key, int* value) {
|
||||
const char* strValue = ConfigurationGetValue(config, section, key);
|
||||
if (!strValue) {
|
||||
|
|
|
@ -22,6 +22,8 @@ struct GBAAxis {
|
|||
int32_t deadLow;
|
||||
};
|
||||
|
||||
extern const char* GBAKeyNames[];
|
||||
|
||||
void GBAInputMapInit(struct GBAInputMap*);
|
||||
void GBAInputMapDeinit(struct GBAInputMap*);
|
||||
|
||||
|
|
Loading…
Reference in New Issue