Correctly check for RGUI_ACTION_OK.

This commit is contained in:
Themaister 2014-04-13 20:12:45 +02:00
parent 64652f5ee9
commit 72671279c7

View File

@ -996,6 +996,8 @@ int menu_set_settings(void *data, unsigned setting, unsigned action)
rgui->bind_mode_keyboard = !rgui->bind_mode_keyboard;
break;
case RGUI_SETTINGS_CUSTOM_BIND_ALL:
if (action == RGUI_ACTION_OK)
{
if (rgui->bind_mode_keyboard)
{
rgui->binds.target = &g_settings.input.binds[port][0];
@ -1014,6 +1016,7 @@ int menu_set_settings(void *data, unsigned setting, unsigned action)
menu_poll_bind_get_rested_axes(&rgui->binds);
menu_poll_bind_state(&rgui->binds);
}
}
break;
case RGUI_SETTINGS_CUSTOM_BIND_DEFAULT_ALL:
if (action == RGUI_ACTION_OK)