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:
parent
17b205d8d0
commit
04bcc1dd97
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -18,7 +18,7 @@ private:
|
||||
IUSBEndpoint *m_inPipe = nullptr;
|
||||
IUSBEndpoint *m_outPipe = nullptr;
|
||||
|
||||
Xbox360ButtonData m_buttonData;
|
||||
Xbox360ButtonData m_buttonData{};
|
||||
|
||||
bool m_presence = false;
|
||||
|
||||
|
@ -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);
|
||||
|
@ -78,7 +78,7 @@ private:
|
||||
IUSBEndpoint *m_inPipe = nullptr;
|
||||
IUSBEndpoint *m_outPipe = nullptr;
|
||||
|
||||
XboxOneButtonData m_buttonData;
|
||||
XboxOneButtonData m_buttonData{};
|
||||
bool m_GuidePressed{false};
|
||||
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user