Skip to content

Commit

Permalink
Added: Raspberry Pi Pico GP2040CE
Browse files Browse the repository at this point in the history
  • Loading branch information
isage committed Sep 9, 2023
1 parent 654105a commit 753f9f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/controllers/dinput_controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ uint8_t DinputController_processReport(Controller *c, size_t length)
{
return psclassic_processReport(c, length);
}
else if (c->vendor == 0x0F0D && (c->product == 0x0049 || c->product == 0x00a6 || c->product == 0x0022)) // Hori ps3 mini diva / Hori divaX ps3 mode / Brook universal ds3 mode
else if (c->vendor == 0x0F0D &&
(
c->product == 0x0049 || c->product == 0x00a6 || c->product == 0x0022 || c->product == 0x0092
)
) // Hori ps3 mini diva / Hori divaX ps3 mode / Brook universal ds3 mode / Raspberry Pi Pico GP2040CE
{
return horiDiva_processReport(c, length);
}
Expand All @@ -126,7 +130,7 @@ uint8_t DinputController_processReport(Controller *c, size_t length)
{
return logitech_processReport(c, length);
}
else if (c->vendor == 0x046d && c->product == 0xc20c) // logitech
else if (c->vendor == 0x046d && c->product == 0xc20c) // logitech wingman
{
return logitechWingman_processReport(c, length);
}
Expand Down
2 changes: 1 addition & 1 deletion src/devicelist.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,6 @@ gamepad_t _devices[] = {{PAD_XBOX360, 0x045e, 0x028e}, // Microsoft X-Box 360 p
// {PAD_DINPUT, 0x0c12, 0x0c30}, // Brook universal fighting board (ds4 mode)

{PAD_DINPUT, 0x12ba, 0x0100}, // Raspberry Pi Pico GH

{PAD_DINPUT, 0x0f0d, 0x0092}, // Raspberry Pi Pico GP2040CE

{PAD_UNKNOWN, 0x0000, 0x0000}}; // Null

0 comments on commit 753f9f0

Please sign in to comment.