all repos — mgba @ 1624cd92ba69968193ac7f7b80ddfd0d7c8c04b9

mGBA Game Boy Advance Emulator

Wii: Rumble for gamecube pads
Jeffrey Pfau jeffrey@endrift.com
Thu, 27 Aug 2015 22:39:07 -0700
commit

1624cd92ba69968193ac7f7b80ddfd0d7c8c04b9

parent

699e07e89b2468c2c338798e01db0080c13782f3

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M src/platform/wii/main.csrc/platform/wii/main.c

@@ -415,4 +415,9 @@

void _setRumble(struct GBARumble* rumble, int enable) { UNUSED(rumble); WPAD_Rumble(0, enable); + if (enable) { + PAD_ControlMotor(0, PAD_MOTOR_RUMBLE); + } else { + PAD_ControlMotor(0, PAD_MOTOR_STOP); + } }