From d31f2d5c88357a46e91c28ed89c450f58479deb9 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Thu, 22 Mar 2012 20:35:45 +0100 Subject: [PATCH] installer now supports GameCube-Controller --- installer/source/menu.cpp | 24 ++++++++++++++++++++++++ installer/wad/0001000154484246.tmd | Bin 592 -> 592 bytes updates | 2 ++ 3 files changed, 26 insertions(+) diff --git a/installer/source/menu.cpp b/installer/source/menu.cpp index 537f68e..088164f 100644 --- a/installer/source/menu.cpp +++ b/installer/source/menu.cpp @@ -19,6 +19,18 @@ int startpos_x = 6; int startpos_y = 12; int menu_main_choice; +void Pad_unpressed( void ) +{ + while(1) + { + PAD_ScanPads(); + u32 PAD_Unpressed = PAD_ButtonsUp(0); + if ( PAD_Unpressed ) + break; + } + return; +} + void show_menu_head() { Con_FgColor(6, 1); @@ -150,6 +162,9 @@ int menu_main(int scrollpos) scrollpos++; scroll = true; + + if( PAD_ButtonsDown(0) ) + Pad_unpressed(); } else if((WPAD_ButtonsDown(0) & (WPAD_BUTTON_UP | WPAD_CLASSIC_BUTTON_UP) || (PAD_ButtonsDown(0) & PAD_BUTTON_UP)) && scrollpos != 0) @@ -159,6 +174,9 @@ int menu_main(int scrollpos) scrollpos--; scroll = true; + + if( PAD_ButtonsDown(0) ) + Pad_unpressed(); } if(scroll) @@ -226,12 +244,18 @@ int menu_install_uninstall(int install) { scrollpos++; scroll = true; + + if( PAD_ButtonsDown(0) ) + Pad_unpressed(); } else if((WPAD_ButtonsDown(0) & (WPAD_BUTTON_UP | WPAD_CLASSIC_BUTTON_UP) || (PAD_ButtonsDown(0) & PAD_BUTTON_UP)) && scrollpos != 0) { scrollpos--; scroll = true; + + if( PAD_ButtonsDown(0) ) + Pad_unpressed(); } if(scroll) diff --git a/installer/wad/0001000154484246.tmd b/installer/wad/0001000154484246.tmd index 894dec50cf947f5a6d83fc933ba676bde1c5a0e4..672bdb7182e0c55f87f1f137605ee283a74257e4 100644 GIT binary patch delta 30 mcmcb>a)D)o6_c3#gD>mSQ(q+Ci5D-G6>69!`X_P=TOk0>5e*~& delta 30 mcmcb>a)D)o6_c24Lgu^I85{!DOe;FC?>O#W?|%OXe=q>Q;0+)E diff --git a/updates b/updates index 252b832..c502538 100644 --- a/updates +++ b/updates @@ -7,7 +7,9 @@ - BUGFIX: installer no longer crashes on IOS58 due to early controller initialization (only happened under certain circumstances) +- BUGFIX: compiled with libpng to fix a problem in PNG handling - installer now supports Classic-Controller +- installer now supports GameCube-Controller //rev37: - improved update-mechanism: