|
static SDL_bool SetSlotLED(hid_device *dev, Uint8 slot)
|
|
static SDL_bool SetSlotLED(hid_device *dev, Uint8 slot)
|
|
const Uint8 led_packet[] = { 0x00, 0x00, 0x08, (0x40 + (mode % 0x0e)), 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
|
const Uint8 led_packet[] = { 0x00, 0x00, 0x08, (0x40 + (mode % 0x0e)), 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
|
if (hid_write(dev, led_packet, sizeof(led_packet)) != sizeof(led_packet)) {
|
|
if (hid_write(dev, led_packet, sizeof(led_packet)) != sizeof(led_packet)) {
|