mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-25 19:31:06 +00:00
SDL_hidapi_switch.c (ConstructSubcommand): lose use of '&' on rumbleData
SwitchCommonOutputPacket_t->rumbleData is an array.
This commit is contained in:
parent
6ad0fb8462
commit
a2c27d39cf
|
@ -418,7 +418,7 @@ static void ConstructSubcommand(SDL_DriverSwitch_Context *ctx, ESwitchSubcommand
|
||||||
outPacket->commonData.ucPacketType = k_eSwitchOutputReportIDs_RumbleAndSubcommand;
|
outPacket->commonData.ucPacketType = k_eSwitchOutputReportIDs_RumbleAndSubcommand;
|
||||||
outPacket->commonData.ucPacketNumber = ctx->m_nCommandNumber;
|
outPacket->commonData.ucPacketNumber = ctx->m_nCommandNumber;
|
||||||
|
|
||||||
SDL_memcpy(&outPacket->commonData.rumbleData, &ctx->m_RumblePacket.rumbleData, sizeof(ctx->m_RumblePacket.rumbleData));
|
SDL_memcpy(outPacket->commonData.rumbleData, ctx->m_RumblePacket.rumbleData, sizeof(ctx->m_RumblePacket.rumbleData));
|
||||||
|
|
||||||
outPacket->ucSubcommandID = ucCommandID;
|
outPacket->ucSubcommandID = ucCommandID;
|
||||||
SDL_memcpy(outPacket->rgucSubcommandData, pBuf, ucLen);
|
SDL_memcpy(outPacket->rgucSubcommandData, pBuf, ucLen);
|
||||||
|
|
Loading…
Reference in a new issue