diff --git a/src/gba/gba-input.c b/src/gba/gba-input.c index 9e4fd1dbc..0a201e3d3 100644 --- a/src/gba/gba-input.c +++ b/src/gba/gba-input.c @@ -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) { diff --git a/src/gba/gba-input.h b/src/gba/gba-input.h index 3c8ca4eab..09ea39c8b 100644 --- a/src/gba/gba-input.h +++ b/src/gba/gba-input.h @@ -22,6 +22,8 @@ struct GBAAxis { int32_t deadLow; }; +extern const char* GBAKeyNames[]; + void GBAInputMapInit(struct GBAInputMap*); void GBAInputMapDeinit(struct GBAInputMap*);