mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Fixed the Y button (typo) on the GC adapter.
This commit is contained in:
parent
f3064bf160
commit
6fb89e3b77
@ -209,8 +209,7 @@ void Input(int chan, GCPadStatus* pad)
|
||||
|
||||
if (s_controller_payload_size != sizeof(controller_payload_copy) || controller_payload_copy[0] != LIBUSB_DT_HID)
|
||||
{
|
||||
ERROR_LOG(SERIALINTERFACE, "error reading payload (size: %d)", s_controller_payload_size);
|
||||
Shutdown();
|
||||
ERROR_LOG(SERIALINTERFACE, "error reading payload (size: %d, type: %02x)", s_controller_payload_size, controller_payload_copy[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -228,7 +227,7 @@ void Input(int chan, GCPadStatus* pad)
|
||||
if (b1 & (1 << 0)) pad->button |= PAD_BUTTON_A;
|
||||
if (b1 & (1 << 1)) pad->button |= PAD_BUTTON_B;
|
||||
if (b1 & (1 << 2)) pad->button |= PAD_BUTTON_X;
|
||||
if (b1 & (1 << 2)) pad->button |= PAD_BUTTON_Y;
|
||||
if (b1 & (1 << 3)) pad->button |= PAD_BUTTON_Y;
|
||||
|
||||
if (b1 & (1 << 4)) pad->button |= PAD_BUTTON_LEFT;
|
||||
if (b1 & (1 << 5)) pad->button |= PAD_BUTTON_RIGHT;
|
||||
|
@ -14,7 +14,7 @@ namespace SI_GCAdapter
|
||||
void Init();
|
||||
void Shutdown();
|
||||
void Input(int chan, GCPadStatus* pad);
|
||||
void Output(int chan, u8 rumble);
|
||||
void Output(int chan, u8 rumble_command);
|
||||
SIDevices GetDeviceType(int channel);
|
||||
void RefreshConnectedDevices();
|
||||
bool IsDetected();
|
||||
|
Loading…
Reference in New Issue
Block a user