mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-24 11:11:38 +00:00
Change SPADStatus struct name to GCPadStatus
Also get rid of the typedef, since this is unnecessary in C++
This commit is contained in:
parent
8059f80282
commit
896d7e5685
20 changed files with 39 additions and 39 deletions
|
@ -29,7 +29,7 @@ NetPad::NetPad()
|
|||
nLo = 0x80800000;
|
||||
}
|
||||
|
||||
NetPad::NetPad(const SPADStatus* const pad_status)
|
||||
NetPad::NetPad(const GCPadStatus* const pad_status)
|
||||
{
|
||||
nHi = (u32)((u8)pad_status->stickY);
|
||||
nHi |= (u32)((u8)pad_status->stickX << 8);
|
||||
|
@ -558,7 +558,7 @@ void NetPlayClient::ClearBuffers()
|
|||
}
|
||||
|
||||
// called from ---CPU--- thread
|
||||
bool NetPlayClient::GetNetPads(const u8 pad_nb, const SPADStatus* const pad_status, NetPad* const netvalues)
|
||||
bool NetPlayClient::GetNetPads(const u8 pad_nb, const GCPadStatus* const pad_status, NetPad* const netvalues)
|
||||
{
|
||||
// The interface for this is extremely silly.
|
||||
//
|
||||
|
@ -618,7 +618,7 @@ bool NetPlayClient::GetNetPads(const u8 pad_nb, const SPADStatus* const pad_stat
|
|||
Common::SleepCurrentThread(1);
|
||||
}
|
||||
|
||||
SPADStatus tmp;
|
||||
GCPadStatus tmp;
|
||||
tmp.stickY = ((u8*)&netvalues->nHi)[0];
|
||||
tmp.stickX = ((u8*)&netvalues->nHi)[1];
|
||||
tmp.button = ((u16*)&netvalues->nHi)[1];
|
||||
|
@ -846,7 +846,7 @@ u8 NetPlayClient::LocalWiimoteToInGameWiimote(u8 local_pad)
|
|||
|
||||
// called from ---CPU--- thread
|
||||
// Actual Core function which is called on every frame
|
||||
bool CSIDevice_GCController::NetPlay_GetInput(u8 numPAD, SPADStatus PadStatus, u32 *PADStatus)
|
||||
bool CSIDevice_GCController::NetPlay_GetInput(u8 numPAD, GCPadStatus PadStatus, u32 *PADStatus)
|
||||
{
|
||||
std::lock_guard<std::mutex> lk(crit_netplay_client);
|
||||
|
||||
|
@ -866,12 +866,12 @@ bool WiimoteEmu::Wiimote::NetPlay_GetWiimoteData(int wiimote, u8* data, u8 size)
|
|||
return false;
|
||||
}
|
||||
|
||||
bool CSIDevice_GCSteeringWheel::NetPlay_GetInput(u8 numPAD, SPADStatus PadStatus, u32 *PADStatus)
|
||||
bool CSIDevice_GCSteeringWheel::NetPlay_GetInput(u8 numPAD, GCPadStatus PadStatus, u32 *PADStatus)
|
||||
{
|
||||
return CSIDevice_GCController::NetPlay_GetInput(numPAD, PadStatus, PADStatus);
|
||||
}
|
||||
|
||||
bool CSIDevice_DanceMat::NetPlay_GetInput(u8 numPAD, SPADStatus PadStatus, u32 *PADStatus)
|
||||
bool CSIDevice_DanceMat::NetPlay_GetInput(u8 numPAD, GCPadStatus PadStatus, u32 *PADStatus)
|
||||
{
|
||||
return CSIDevice_GCController::NetPlay_GetInput(numPAD, PadStatus, PADStatus);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue