Initialize button states to zero.

This commit is contained in:
mjbudd77 2021-08-02 21:58:06 -04:00
parent eabde5f134
commit 10f5988e62
1 changed files with 4 additions and 0 deletions

View File

@ -338,6 +338,10 @@ GamePad_t::GamePad_t(void)
bmap[c][i].state = 0;
}
}
for (int i = 0; i < GAMEPAD_NUM_BUTTONS; i++)
{
bmapState[i] = 0;
}
}
//********************************************************************************
GamePad_t::~GamePad_t(void)