summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.h
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-10-13 21:52:22 +0200
committerGitHub <noreply@github.com>2021-10-13 21:52:22 +0200
commit023eb0b7029eb3633ce9eeb039c11d835ea7fd74 (patch)
tree93aeabec56ac75e8d88baeb6f78e27840d09dead /Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.h
parenta0a91ec4b86b16624b2da7000a0f54852cd33872 (diff)
parent78bfd25964206a1f0a34170fdd90ca1a8ce242db (diff)
Merge pull request #10085 from Pokechu22/C26495
Fix all uninitialized variable warnings (C26495)
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.h')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.h b/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.h
index d174f4a28e..eba4c8ab93 100644
--- a/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.h
+++ b/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.h
@@ -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;