Skip to content

Commit

Permalink
Support SNES controller, fix joy-con leds
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryOderNichts committed Sep 29, 2021
1 parent e618cb9 commit def487f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/ios_pad/source/controllers.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ int initController(uint8_t handle, uint8_t magic, uint16_t vendor_id, uint16_t p
else if (magic == MAGIC_BLOOPAIR) {
if ((vendor_id == 0x057e && product_id == 0x2009) || // switch pro controller
(vendor_id == 0x057e && product_id == 0x2007) || // joycon r
(vendor_id == 0x057e && product_id == 0x2006)) { // joycon l
controllerInit_switch(controller, vendor_id == 0x2007);
(vendor_id == 0x057e && product_id == 0x2006) || // joycon l
(vendor_id == 0x057e && product_id == 0x2017)) { // snes controller
controllerInit_switch(controller, product_id == 0x2007);
return 0;
}
else if ((vendor_id == 0x045e && product_id == 0x02e0) || // xbox one s controller
Expand Down

0 comments on commit def487f

Please sign in to comment.