ggpo: zero-init unused but sent inputs

avoids lots of useless rollbacks
This commit is contained in:
Flyinghead 2022-11-29 17:12:15 +01:00
parent 64223927b8
commit 034f90c1e0
1 changed files with 2 additions and 0 deletions

View File

@ -697,6 +697,8 @@ bool nextFrame()
inputs.kcode |= BTN_TRIGGER_LEFT;
else
inputs.kcode &= ~BTN_TRIGGER_LEFT;
inputs.mouseButtons = 0;
inputs.kbModifiers = 0;
if (analogAxes > 0)
{
inputs.u.analog.x = joyx[0];