all repos — mgba @ a9106d526ccd14edc9fc82755856ae8ed11a246e

mGBA Game Boy Advance Emulator

GBA Input: Add key names
Jeffrey Pfau jeffrey@endrift.com
Sun, 14 Dec 2014 00:55:48 -0800
commit

a9106d526ccd14edc9fc82755856ae8ed11a246e

parent

16bf77659fc1642cae72b3fefec5eb6a8c4d7ffd

2 files changed, 15 insertions(+), 0 deletions(-)

jump to
M src/gba/gba-input.csrc/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.hsrc/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*);