initialise/clear mbutton field

This commit is contained in:
David Walters 2017-11-26 11:56:55 +00:00
parent 25efae0630
commit b267419551
3 changed files with 4 additions and 0 deletions

View File

@ -144,6 +144,7 @@ static int action_scan_input_desc(const char *path,
target->key = RETROK_UNKNOWN;
target->joykey = NO_BTN;
target->joyaxis = AXIS_NONE;
target->mbutton = NO_BTN;
}
return 0;

View File

@ -1441,6 +1441,7 @@ static int setting_action_ok_bind_defaults(void *data, bool wraparound)
target->key = def_binds[i - MENU_SETTINGS_BIND_BEGIN].key;
target->joykey = NO_BTN;
target->joyaxis = AXIS_NONE;
target->mbutton = NO_BTN;
}
return 0;

View File

@ -131,6 +131,8 @@ static int setting_bind_action_start(void *data)
bind_type = setting_get_bind_type(setting);
keybind->key = def_binds[bind_type - MENU_SETTINGS_BIND_BEGIN].key;
keybind->mbutton = NO_BTN;
return 0;
}
#endif