1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-11-05 17:26:28 +00:00

Zero-initialize button data variables

This commit is contained in:
cathery 2019-11-22 00:41:07 +03:00
parent 17b205d8d0
commit 04bcc1dd97
6 changed files with 6 additions and 6 deletions

View File

@ -126,7 +126,7 @@ private:
IUSBEndpoint *m_outPipe = nullptr;
IUSBInterface *m_interface = nullptr;
Dualshock3ButtonData m_buttonData;
Dualshock3ButtonData m_buttonData{};
public:
Dualshock3Controller(std::unique_ptr<IUSBDevice> &&interface);

View File

@ -144,7 +144,7 @@ private:
IUSBEndpoint *m_inPipe = nullptr;
IUSBEndpoint *m_outPipe = nullptr;
Dualshock4USBButtonData m_buttonData;
Dualshock4USBButtonData m_buttonData{};
public:
Dualshock4Controller(std::unique_ptr<IUSBDevice> &&interface);

View File

@ -86,7 +86,7 @@ private:
IUSBEndpoint *m_inPipe = nullptr;
IUSBEndpoint *m_outPipe = nullptr;
Xbox360ButtonData m_buttonData;
Xbox360ButtonData m_buttonData{};
public:
Xbox360Controller(std::unique_ptr<IUSBDevice> &&interface);

View File

@ -18,7 +18,7 @@ private:
IUSBEndpoint *m_inPipe = nullptr;
IUSBEndpoint *m_outPipe = nullptr;
Xbox360ButtonData m_buttonData;
Xbox360ButtonData m_buttonData{};
bool m_presence = false;

View File

@ -56,7 +56,7 @@ private:
IUSBEndpoint *m_inPipe = nullptr;
IUSBEndpoint *m_outPipe = nullptr;
XboxButtonData m_buttonData;
XboxButtonData m_buttonData{};
public:
XboxController(std::unique_ptr<IUSBDevice> &&interface);

View File

@ -78,7 +78,7 @@ private:
IUSBEndpoint *m_inPipe = nullptr;
IUSBEndpoint *m_outPipe = nullptr;
XboxOneButtonData m_buttonData;
XboxOneButtonData m_buttonData{};
bool m_GuidePressed{false};
public: