MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / WriteOutput

Function WriteOutput

deps/SDL2/src/joystick/hidapi/SDL_hidapi_switch.c:278–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278static 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
287static SwitchSubcommandInputPacket_t *ReadSubcommandReply(SDL_DriverSwitch_Context *ctx, ESwitchSubcommandIDs expectedID)
288{

Callers 1

WritePacketFunction · 0.85

Calls 2

SDL_HIDAPI_LockRumbleFunction · 0.85

Tested by

no test coverage detected