Skip to content

Commit

Permalink
Fix to bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
lostastro committed Feb 16, 2021
1 parent 2a0d664 commit 837f10d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scripts/ICUI/ICUI.gml
Original file line number Diff line number Diff line change
Expand Up @@ -1679,11 +1679,13 @@ function ICUI_Draw_input_binding_choice() {
case mi_set_to_default:
audio_play_sound(a_ICUI_tone,100,0);
var b_index=__ICI.GetBinding( settings_index, action_index );
if ( b_index == none ) b_index=__ICI.AddBinding( settings_index, action_index );
if ( __INPUTCANDY.ui.input_binding.keyboard_and_mouse ) {
__INPUTCANDY.settings[settings_index].bindings[b_index].bound_action.keyboard=action.keyboard;
} else
__INPUTCANDY.settings[settings_index].bindings[b_index].bound_action.gamepad=action.gamepad;
if ( b_index != none ) {
if ( __INPUTCANDY.ui.input_binding.keyboard_and_mouse ) {
__INPUTCANDY.settings[settings_index].bindings[b_index].bound_action.keyboard=action.keyboard;
} else
__INPUTCANDY.settings[settings_index].bindings[b_index].bound_action.gamepad=action.gamepad;
}
}
__INPUTCANDY.ui.input_binding.choosing=false;
break;
}
Expand Down

0 comments on commit 837f10d

Please sign in to comment.