SI_DeviceDanceMat: Amend variable naming

This commit is contained in:
Lioncash 2017-03-14 17:46:09 -04:00
parent a3557ed199
commit e68e99ef71
2 changed files with 14 additions and 14 deletions

View File

@ -7,27 +7,27 @@
#include "Common/CommonTypes.h"
#include "InputCommon/GCPadStatus.h"
CSIDevice_DanceMat::CSIDevice_DanceMat(SIDevices device, int _iDeviceNumber)
: CSIDevice_GCController(device, _iDeviceNumber)
CSIDevice_DanceMat::CSIDevice_DanceMat(SIDevices device, int device_number)
: CSIDevice_GCController(device, device_number)
{
}
int CSIDevice_DanceMat::RunBuffer(u8* _pBuffer, int _iLength)
int CSIDevice_DanceMat::RunBuffer(u8* buffer, int length)
{
// Read the command
EBufferCommands command = static_cast<EBufferCommands>(_pBuffer[3]);
EBufferCommands command = static_cast<EBufferCommands>(buffer[3]);
if (command == CMD_RESET)
{
ISIDevice::RunBuffer(_pBuffer, _iLength);
*(u32*)&_pBuffer[0] = SI_DANCEMAT;
ISIDevice::RunBuffer(buffer, length);
*(u32*)&buffer[0] = SI_DANCEMAT;
}
else
{
return CSIDevice_GCController::RunBuffer(_pBuffer, _iLength);
return CSIDevice_GCController::RunBuffer(buffer, length);
}
return _iLength;
return length;
}
u32 CSIDevice_DanceMat::MapPadStatus(const GCPadStatus& pad_status)
@ -59,12 +59,12 @@ u32 CSIDevice_DanceMat::MapPadStatus(const GCPadStatus& pad_status)
return (u32)(map << 16) | 0x8080;
}
bool CSIDevice_DanceMat::GetData(u32& _Hi, u32& _Low)
bool CSIDevice_DanceMat::GetData(u32& hi, u32& low)
{
CSIDevice_GCController::GetData(_Hi, _Low);
CSIDevice_GCController::GetData(hi, low);
// Identifies the dance mat
_Low = 0x8080ffff;
low = 0x8080ffff;
return true;
}

View File

@ -12,9 +12,9 @@ struct GCPadStatus;
class CSIDevice_DanceMat : public CSIDevice_GCController
{
public:
CSIDevice_DanceMat(SIDevices device, int _iDeviceNumber);
CSIDevice_DanceMat(SIDevices device, int device_number);
int RunBuffer(u8* _pBuffer, int _iLength) override;
int RunBuffer(u8* buffer, int length) override;
u32 MapPadStatus(const GCPadStatus& pad_status) override;
bool GetData(u32& _Hi, u32& _Low) override;
bool GetData(u32& hi, u32& low) override;
};