input: fix the index.

This commit is contained in:
sorgelig
2020-02-02 06:23:42 +08:00
parent 4e60e9f8d0
commit 3bec9863ae

View File

@@ -157,7 +157,7 @@ void map_joystick(uint32_t *map, uint32_t *mmap)
{
if (!strcmp(joy_bnames[i], "-")) continue;
int idx = n+DPAD_COUNT;
int idx = i+DPAD_COUNT;
char *btn_name = defaults ? joy_pnames[n] : joy_nnames[n];
int mapped = 1;