This may help:
Needless to say, players will need to have modded their Wii in order to access this alternate control method as it takes use of the Ocarina cheat code system in order to work.
Those who own the title can boot the game via GeckOS with Ocarina enabled to activate the controller modification. First, players must create a .gct cheat file and place it in the /codes folder located on the root of the SD Card.
Classic Controller Support (v2)
C24A5F70 00000020
38210050 7C0802A6
80B50060 48000041
80950000 7CA52378
90B50000 80B50064
4800002D 80950004
7CA52378 90B50004
80B50068 48000019
80950008 7CA52378
90B50008 7C0803A6
4E800020 70A40020 --> button (in this case Y) which triggers the shake
2C040000 4182000C
38C0012D B0D50186
38C00000 70A40800
2C040000 41820008
60C68000 70A40200 --> button (in this case R) which simulates a 1 press
2C040000 41820008
60C60200 70A40040 --> button (in this case B) which simulates a 2 press
2C040000 41820008
60C60100 70A40001
2C040000 41820008
60C60002 70A40002
2C040000 41820008
60C60008 70A48000
2C040000 41820008
60C60004 70A44000
2C040000 41820008
60C60001 70A40400
2C040000 41820008
60C60010 70A41000
2C040000 41820008
60C61000 7CC53378
60000000 00000000
04389B90 38A00000
0438710C 28000009
Classic Controller Support (v1)
C24A3FC0 00000020
38210050 7C0802A6
80B50060 48000041
80950000 7CA52378
90B50000 80B50064
4800002D 80950004
7CA52378 90B50004
80B50068 48000019
80950008 7CA52378
90B50008 7C0803A6
4E800020 70A40020 --> button (in this case Y) which triggers the shake
2C040000 4182000C
38C0012D B0D50186
38C00000 70A40800
2C040000 41820008
60C68000 70A40200 --> button (in this case R) which simulates a 1 press
2C040000 41820008
60C60200 70A40040 --> button (in this case B) which simulates a 2 press
2C040000 41820008
60C60100 70A40001
2C040000 41820008
60C60002 70A40002
2C040000 41820008
60C60008 70A48000
2C040000 41820008
60C60004 70A44000
2C040000 41820008
60C60001 70A40400
2C040000 41820008
60C60010 70A41000
2C040000 41820008
60C61000 7CC53378
60000000 00000000
04387CF0 38A00000
0438526C 28000009
http://www.pixlbit.com/news/1037/donkey_kong_country_returns_gets_classic_controller_support
For further reading and ideas for remapping butons:
You're looking for something called button activators. Basically, a button activator is 4 digits within a code sequence, that does exactly what it says, it activates the button.
Here is the list of classic controller button activators:
Classic Controller Button Activator = 28200F0A 0000XXXX.
XXXX Values:
0001: Up DPAD.
0002: Left DPAD.
4000: Down DPAD.
8000: Right DPAD.
1000: Minus (Select)
0800: Home.
0400: Plus (Start)
0008: X.
0020: Y.
0040: B.
0010: A.
2000: L.
0080: ZL.
0200: R.
0004: ZR.
In your code, in the line that says "R" button, it ends in "0200". If you refer to the list above, "0200" is the code for R. So if instead you wanted to use X, you would change 0200 and make it 0008. If you wanted to make it "B" you would replace it with "0040".
Super simple stuff, but it can be confusing if you dont know what it all means.
Its in reference to DKCR but the logic is the same with NSMBW because its the same platform, same inputs and you're seeking the same solution. All you've got to do is find what the
cheat codes are patching and there should be similar calls in NSMBW. Failing that you could message the people who made these mods for their input as its definitely doable. I posted about it in a reply to another thread but just spotted the codes so go for it.