| 276 | } |
| 277 | |
| 278 | static int WriteOutput(SDL_DriverSwitch_Context *ctx, const Uint8 *data, int size) |
| 279 | { |
| 280 | /* Use the rumble thread for general asynchronous writes */ |
| 281 | if (SDL_HIDAPI_LockRumble() < 0) { |
| 282 | return -1; |
| 283 | } |
| 284 | return SDL_HIDAPI_SendRumbleAndUnlock(ctx->device, data, size); |
| 285 | } |
| 286 | |
| 287 | static SwitchSubcommandInputPacket_t *ReadSubcommandReply(SDL_DriverSwitch_Context *ctx, ESwitchSubcommandIDs expectedID) |
| 288 | { |
no test coverage detected