joymapping: fix display of mapping.
This commit is contained in:
@@ -232,16 +232,19 @@ int map_paddle_btn()
|
||||
|
||||
static const char* get_std_name(uint16_t code, uint32_t *mmap)
|
||||
{
|
||||
if (code == mmap[SYS_BTN_A ]) return "[A]";
|
||||
if (code == mmap[SYS_BTN_B ]) return "[B]";
|
||||
if (code == mmap[SYS_BTN_X ]) return "[X]";
|
||||
if (code == mmap[SYS_BTN_Y ]) return "[Y]";
|
||||
if (code == mmap[SYS_BTN_L ]) return "[L]";
|
||||
if (code == mmap[SYS_BTN_R ]) return "[R]";
|
||||
if (code == mmap[SYS_BTN_SELECT]) return "[\x96]";
|
||||
if (code == mmap[SYS_BTN_START ]) return "[\x16]";
|
||||
|
||||
return code ? "[ ]" : NULL;
|
||||
if (code)
|
||||
{
|
||||
if (code == mmap[SYS_BTN_A]) return "[A]";
|
||||
if (code == mmap[SYS_BTN_B]) return "[B]";
|
||||
if (code == mmap[SYS_BTN_X]) return "[X]";
|
||||
if (code == mmap[SYS_BTN_Y]) return "[Y]";
|
||||
if (code == mmap[SYS_BTN_L]) return "[L]";
|
||||
if (code == mmap[SYS_BTN_R]) return "[R]";
|
||||
if (code == mmap[SYS_BTN_SELECT]) return "[\x96]";
|
||||
if (code == mmap[SYS_BTN_START]) return "[\x16]";
|
||||
return "[ ]";
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void map_joystick_show(uint32_t *map, uint32_t *mmap, int num)
|
||||
|
||||
Reference in New Issue
Block a user