diff options
| author | Léo Lam <leo@leolam.fr> | 2021-10-13 21:52:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-13 21:52:22 +0200 |
| commit | 023eb0b7029eb3633ce9eeb039c11d835ea7fd74 (patch) | |
| tree | 93aeabec56ac75e8d88baeb6f78e27840d09dead /Source/Core/InputCommon/ControllerInterface/CoreDevice.h | |
| parent | a0a91ec4b86b16624b2da7000a0f54852cd33872 (diff) | |
| parent | 78bfd25964206a1f0a34170fdd90ca1a8ce242db (diff) | |
Merge pull request #10085 from Pokechu22/C26495
Fix all uninitialized variable warnings (C26495)
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/CoreDevice.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/CoreDevice.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/CoreDevice.h b/Source/Core/InputCommon/ControllerInterface/CoreDevice.h index def895afa1..2840f43463 100644 --- a/Source/Core/InputCommon/ControllerInterface/CoreDevice.h +++ b/Source/Core/InputCommon/ControllerInterface/CoreDevice.h @@ -174,7 +174,7 @@ protected: void AddCombinedInput(std::string name, const std::pair<std::string, std::string>& inputs); private: - int m_id; + int m_id = 0; std::vector<Input*> m_inputs; std::vector<Output*> m_outputs; }; @@ -216,10 +216,10 @@ public: struct InputDetection { std::shared_ptr<Device> device; - Device::Input* input; + Device::Input* input = nullptr; Clock::time_point press_time; std::optional<Clock::time_point> release_time; - ControlState smoothness; + ControlState smoothness = 0; }; Device::Input* FindInput(std::string_view name, const Device* def_dev) const; |
