Zero the direction array before batching
This commit is contained in:
parent
2a0e5a0491
commit
43e6d35b8f
1 changed files with 2 additions and 0 deletions
|
|
@ -148,6 +148,8 @@ static void inputSendThreadProc(void* context) {
|
||||||
PNV_MULTI_CONTROLLER_PACKET origPkt;
|
PNV_MULTI_CONTROLLER_PACKET origPkt;
|
||||||
int dirs[6];
|
int dirs[6];
|
||||||
|
|
||||||
|
memset(dirs, 0, sizeof(dirs));
|
||||||
|
|
||||||
origPkt = &holder->packet.multiController;
|
origPkt = &holder->packet.multiController;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
PNV_MULTI_CONTROLLER_PACKET newPkt;
|
PNV_MULTI_CONTROLLER_PACKET newPkt;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue