mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
SI_DeviceDanceMat: Amend variable naming
This commit is contained in:
@ -7,27 +7,27 @@
|
|||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
#include "InputCommon/GCPadStatus.h"
|
#include "InputCommon/GCPadStatus.h"
|
||||||
|
|
||||||
CSIDevice_DanceMat::CSIDevice_DanceMat(SIDevices device, int _iDeviceNumber)
|
CSIDevice_DanceMat::CSIDevice_DanceMat(SIDevices device, int device_number)
|
||||||
: CSIDevice_GCController(device, _iDeviceNumber)
|
: CSIDevice_GCController(device, device_number)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
int CSIDevice_DanceMat::RunBuffer(u8* _pBuffer, int _iLength)
|
int CSIDevice_DanceMat::RunBuffer(u8* buffer, int length)
|
||||||
{
|
{
|
||||||
// Read the command
|
// Read the command
|
||||||
EBufferCommands command = static_cast<EBufferCommands>(_pBuffer[3]);
|
EBufferCommands command = static_cast<EBufferCommands>(buffer[3]);
|
||||||
|
|
||||||
if (command == CMD_RESET)
|
if (command == CMD_RESET)
|
||||||
{
|
{
|
||||||
ISIDevice::RunBuffer(_pBuffer, _iLength);
|
ISIDevice::RunBuffer(buffer, length);
|
||||||
*(u32*)&_pBuffer[0] = SI_DANCEMAT;
|
*(u32*)&buffer[0] = SI_DANCEMAT;
|
||||||
}
|
}
|
||||||
else
|
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)
|
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;
|
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
|
// Identifies the dance mat
|
||||||
_Low = 0x8080ffff;
|
low = 0x8080ffff;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -12,9 +12,9 @@ struct GCPadStatus;
|
|||||||
class CSIDevice_DanceMat : public CSIDevice_GCController
|
class CSIDevice_DanceMat : public CSIDevice_GCController
|
||||||
{
|
{
|
||||||
public:
|
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;
|
u32 MapPadStatus(const GCPadStatus& pad_status) override;
|
||||||
bool GetData(u32& _Hi, u32& _Low) override;
|
bool GetData(u32& hi, u32& low) override;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user