Bugfix to previous commit

This commit is contained in:
twinaphex 2013-03-14 18:04:16 +01:00
parent 44ccbe0122
commit 477b6ed893
3 changed files with 3 additions and 3 deletions

View File

@ -419,7 +419,7 @@ static void gx_input_set_keybinds(void *data, unsigned device, unsigned port,
{
for (size_t i = 0; i < arr_size; i++)
{
if (platform_keys[i].joykey == joykey)
if (platform_keys[i].joykey == ret->joykey)
{
strlcpy(ret->desc, platform_keys[i].desc, sizeof(ret->desc));
return;

View File

@ -497,7 +497,7 @@ static void ps3_input_set_keybinds(void *data, unsigned device,
{
for (size_t i = 0; i < arr_size; i++)
{
if (platform_keys[i].joykey == joykey)
if (platform_keys[i].joykey == ret->joykey)
{
strlcpy(ret->desc, platform_keys[i].desc, sizeof(ret->desc));
return;

View File

@ -370,7 +370,7 @@ static void xdk_input_set_keybinds(void *data, unsigned device,
{
for (size_t i = 0; i < arr_size; i++)
{
if (platform_keys[i].joykey == joykey)
if (platform_keys[i].joykey == ret->joykey)
{
strlcpy(ret->desc, platform_keys[i].desc, sizeof(ret->desc));
return;