Skip to content

Commit

Permalink
Set default keybinding when key does not exist.
Browse files Browse the repository at this point in the history
- Fix #463
  • Loading branch information
denisfa authored and rkitover committed Aug 8, 2019
1 parent 38b7613 commit cfb03d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/wx/opts.cpp
Expand Up @@ -179,8 +179,8 @@ opt_desc new_opt_desc(wxString opt, const char* cmd, wxString desc,
int curint, double curdouble, uint32_t curuint)
{
struct opt_desc new_opt = {opt, cmd, desc, stropt, intopt, enumvals,
min, max, boolopt, doubleopt, uintopt,
curstr, curint, curdouble, curuint};
min, max, boolopt, doubleopt, uintopt,
curstr, curint, curdouble, curuint};
return new_opt;
}

Expand Down Expand Up @@ -634,6 +634,7 @@ void load_opts()
}

// joypad is special
set_default_keys();
for (int i = 0; i < 4; i++) {
for (int j = 0; j < NUM_KEYS; j++) {
wxString optname;
Expand Down

0 comments on commit cfb03d8

Please sign in to comment.