Skip to content

Commit

Permalink
SI_DeviceGCAdapter: Stop it being detected as a steering wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
booto committed Jun 6, 2019
1 parent 78e566a commit 3791914
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/Core/HW/SI/SI_DeviceGCAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <cstring>

#include "Common/CommonTypes.h"
#include "Common/Swap.h"
#include "Core/ConfigManager.h"
#include "Core/Core.h"
#include "Core/HW/GCPad.h"
Expand Down Expand Up @@ -60,7 +61,7 @@ int CSIDevice_GCAdapter::RunBuffer(u8* buffer, int length)
// into this port on the hardware gc adapter, exposing it to the game.
if (!GCAdapter::DeviceConnected(m_device_number))
{
TSIDevices device = SI_NONE;
u32 device = Common::swap32(SI_NONE);
memcpy(buffer, &device, sizeof(device));
return 4;
}
Expand Down

0 comments on commit 3791914

Please sign in to comment.