mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-11 13:05:16 +00:00
Fix MSVC syntax error
Fixes the following error: ` error C2059: syntax error: '}' `
This commit is contained in:
@@ -960,7 +960,7 @@ static bool UpdateRumble(SDL_DriverSwitch2_Context *ctx)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned char rumble_data[64] = {};
|
unsigned char rumble_data[64] = {0};
|
||||||
if (ctx->device->product_id == USB_PRODUCT_NINTENDO_SWITCH2_GAMECUBE_CONTROLLER) {
|
if (ctx->device->product_id == USB_PRODUCT_NINTENDO_SWITCH2_GAMECUBE_CONTROLLER) {
|
||||||
Uint16 rumble_max = SDL_max(ctx->rumble_lo_amp, ctx->rumble_hi_amp);
|
Uint16 rumble_max = SDL_max(ctx->rumble_lo_amp, ctx->rumble_hi_amp);
|
||||||
rumble_data[0x00] = 0x3;
|
rumble_data[0x00] = 0x3;
|
||||||
|
|||||||
Reference in New Issue
Block a user