mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Core/GC: Fix rumble for "Luigi's Mansion"
This commit is contained in:
@ -309,14 +309,13 @@ void CSIDevice_GCController::SendCommand(u32 command, u8 poll)
|
|||||||
case CMD_WRITE:
|
case CMD_WRITE:
|
||||||
{
|
{
|
||||||
unsigned int type = controller_command.parameter1; // 0 = stop, 1 = rumble, 2 = stop hard
|
unsigned int type = controller_command.parameter1; // 0 = stop, 1 = rumble, 2 = stop hard
|
||||||
unsigned int strength = controller_command.parameter2;
|
|
||||||
|
|
||||||
// get the correct pad number that should rumble locally when using netplay
|
// get the correct pad number that should rumble locally when using netplay
|
||||||
const int pad_num = NetPlay_InGamePadToLocalPad(m_device_number);
|
const int pad_num = NetPlay_InGamePadToLocalPad(m_device_number);
|
||||||
|
|
||||||
if (pad_num < 4)
|
if (pad_num < 4)
|
||||||
{
|
{
|
||||||
if (type == 1 && strength > 2)
|
if (type == 1)
|
||||||
CSIDevice_GCController::Rumble(pad_num, 1.0);
|
CSIDevice_GCController::Rumble(pad_num, 1.0);
|
||||||
else
|
else
|
||||||
CSIDevice_GCController::Rumble(pad_num, 0.0);
|
CSIDevice_GCController::Rumble(pad_num, 0.0);
|
||||||
|
Reference in New Issue
Block a user