mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
Guarantee initialisation of event.data2 to 0 for controller button event
This commit is contained in:
parent
3210b7b80c
commit
fa48fa421b
1 changed files with 1 additions and 0 deletions
|
|
@ -747,6 +747,7 @@ static void Impl_HandleControllerButtonEvent(SDL_ControllerButtonEvent evt, Uint
|
||||||
}
|
}
|
||||||
|
|
||||||
event.data1 = KEY_JOY1;
|
event.data1 = KEY_JOY1;
|
||||||
|
event.data2 = 0;
|
||||||
|
|
||||||
if (type == SDL_CONTROLLERBUTTONUP)
|
if (type == SDL_CONTROLLERBUTTONUP)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue