mirror of https://github.com/encounter/SDL.git
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.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;
|
||||
SDL_memcpy(outPacket->rgucSubcommandData, pBuf, ucLen);
|
||||
|
|
Loading…
Reference in New Issue