Controller: zero-initialize wCam values (#902)

This commit is contained in:
GaryOderNichts 2022-07-24 15:37:17 +02:00 committed by GitHub
parent 38ecb6cfff
commit d3c2c0ec7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@
namespace Ship { namespace Ship {
Controller::Controller() : isRumbling(false), wStickX(0), wStickY(0), wGyroX(0), wGyroY(0), dwPressedButtons(0){ Controller::Controller() : isRumbling(false), wStickX(0), wStickY(0), wGyroX(0), wGyroY(0), wCamX(0), wCamY(0), dwPressedButtons(0){
Attachment = nullptr; Attachment = nullptr;
profiles.resize(MAXCONTROLLERS); profiles.resize(MAXCONTROLLERS);
for(int slot = 0; slot < MAXCONTROLLERS; slot++) { for(int slot = 0; slot < MAXCONTROLLERS; slot++) {