InputCommon: Fix occasional misidentification of analog input detection.

This commit is contained in:
Jordan Woyak
2025-05-23 01:55:32 -05:00
parent 2047eaf1d8
commit 11c3f7ea8d
3 changed files with 4 additions and 7 deletions

View File

@ -217,6 +217,8 @@ public:
Clock::time_point press_time;
std::optional<Clock::time_point> release_time;
ControlState smoothness = 0;
bool IsAnalogPress() const { return smoothness > 1.00001; }
};
Device::Input* FindInput(std::string_view name, const Device* def_dev) const;