From 049a3846b4752ac0e5b2f8a63274f90a958b7950 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sat, 28 Feb 2009 11:13:00 +0000 Subject: [PATCH] Fix binding bug --- CHANGES.WII | 5 +++++ Src/C64_SDL.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES.WII b/CHANGES.WII index 60400f7..645d30d 100644 --- a/CHANGES.WII +++ b/CHANGES.WII @@ -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 + version 7: * Exit with SYS_RETURNTOMENU to make WAD's work diff --git a/Src/C64_SDL.h b/Src/C64_SDL.h index e7f4bb3..cf2e897 100644 --- a/Src/C64_SDL.h +++ b/Src/C64_SDL.h @@ -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);