Guarantee initialisation of event.data2 to 0 for controller button event

This commit is contained in:
toaster 2023-04-12 18:48:53 +01:00
parent 3210b7b80c
commit fa48fa421b

View file

@ -747,6 +747,7 @@ static void Impl_HandleControllerButtonEvent(SDL_ControllerButtonEvent evt, Uint
}
event.data1 = KEY_JOY1;
event.data2 = 0;
if (type == SDL_CONTROLLERBUTTONUP)
{