Fix binding bug

This commit is contained in:
simon.kagstrom 2009-02-28 11:13:00 +00:00
parent 7ac3932818
commit 049a3846b4
2 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,11 @@
TODO: Crash on + in "Other" menu
version 8:
* Fix binding keys without the classic controller (plus etc were missing)
-- Simon Kagstrom <simon.kagstrom@gmail.com>
version 7:
* Exit with SYS_RETURNTOMENU to make WAD's work

View File

@ -283,7 +283,7 @@ void C64::bind_keys(Prefs *np)
memset(bind_key_messages, 0, sizeof(const char*) * (N_WIIMOTE_BINDINGS + 1));
for (int i = 0; i < (has_classic_controller ? N_WIIMOTE_BINDINGS : WIIMOTE_2); i++)
for (int i = 0; i < (has_classic_controller ? N_WIIMOTE_BINDINGS : CLASSIC_UP - 1); i++)
bind_key_messages[i] = this->bind_one_key(np, i);
int opt = menu_select(bind_key_messages, NULL);