mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Fix all uninitialized variable warnings (C26495)
This commit is contained in:
@ -177,9 +177,6 @@ Joystick::Joystick(const LPDIRECTINPUTDEVICE8 device) : m_device(device)
|
||||
InitForceFeedback(m_device, num_ff_axes);
|
||||
}
|
||||
|
||||
// Zero inputs:
|
||||
m_state_in = {};
|
||||
|
||||
// Set hats to center:
|
||||
// "The center position is normally reported as -1" -MSDN
|
||||
std::fill(std::begin(m_state_in.rgdwPOV), std::end(m_state_in.rgdwPOV), -1);
|
||||
|
@ -70,7 +70,7 @@ public:
|
||||
private:
|
||||
const LPDIRECTINPUTDEVICE8 m_device;
|
||||
|
||||
DIJOYSTATE m_state_in;
|
||||
DIJOYSTATE m_state_in{};
|
||||
|
||||
bool m_buffered;
|
||||
};
|
||||
|
@ -22,10 +22,10 @@ class KeyboardMouse : public Core::Device
|
||||
private:
|
||||
struct State
|
||||
{
|
||||
BYTE keyboard[256];
|
||||
BYTE keyboard[256]{};
|
||||
|
||||
// Old smoothed relative mouse movement.
|
||||
DIMOUSESTATE2 mouse;
|
||||
DIMOUSESTATE2 mouse{};
|
||||
|
||||
// Normalized mouse cursor position.
|
||||
Common::TVec2<ControlState> cursor;
|
||||
|
Reference in New Issue
Block a user