GBA Input: Add key names

This commit is contained in:
Jeffrey Pfau 2014-12-14 00:55:48 -08:00
parent 16bf77659f
commit a9106d526c
2 changed files with 15 additions and 0 deletions

View File

@ -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) {

View File

@ -22,6 +22,8 @@ struct GBAAxis {
int32_t deadLow;
};
extern const char* GBAKeyNames[];
void GBAInputMapInit(struct GBAInputMap*);
void GBAInputMapDeinit(struct GBAInputMap*);