GBA Input: Add key names
Jeffrey Pfau jeffrey@endrift.com
Sun, 14 Dec 2014 00:55:48 -0800
2 files changed,
15 insertions(+),
0 deletions(-)
M
src/gba/gba-input.c
→
src/gba/gba-input.c
@@ -21,6 +21,19 @@
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) {
M
src/gba/gba-input.h
→
src/gba/gba-input.h
@@ -22,6 +22,8 @@ int32_t deadHigh;
int32_t deadLow; }; +extern const char* GBAKeyNames[]; + void GBAInputMapInit(struct GBAInputMap*); void GBAInputMapDeinit(struct GBAInputMap*);