mirror of
https://github.com/libretro/RetroArch
synced 2025-01-27 12:35:23 +00:00
(iOS, PS3 Pad) Add quick work around to stop the leds from flashing
This commit is contained in:
parent
90b0fb4bd4
commit
c5004b4405
@ -35,6 +35,8 @@ struct btpad_ps3_data
|
||||
bd_addr_t address;
|
||||
uint32_t handle;
|
||||
uint32_t channels[2];
|
||||
|
||||
bool have_led;
|
||||
};
|
||||
|
||||
static void* btpad_ps3_connect()
|
||||
@ -184,7 +186,15 @@ static void btpad_ps3_packet_handler(struct btpad_ps3_data* device, uint8_t pack
|
||||
}
|
||||
}
|
||||
else if (packet_type == L2CAP_DATA_PACKET && packet[0] == 0xA1)
|
||||
{
|
||||
if (!device->have_led)
|
||||
{
|
||||
btpad_ps3_setleds(device, 1);
|
||||
device->have_led = true;
|
||||
}
|
||||
|
||||
memcpy(device->data, packet, size);
|
||||
}
|
||||
}
|
||||
|
||||
struct btpad_interface btpad_ps3 =
|
||||
|
Loading…
x
Reference in New Issue
Block a user