Controller: Make InAnalogMode() virtual

This commit is contained in:
Connor McLaughlin
2022-10-09 14:10:42 +10:00
parent 21da5036c0
commit 4feb5ad548
6 changed files with 20 additions and 1 deletions

View File

@ -86,6 +86,9 @@ public:
/// Returns a bitmask of the current button states, 1 = on.
virtual u32 GetButtonStateBits() const;
/// Returns true if the controller supports analog mode, and it is active.
virtual bool InAnalogMode() const;
/// Returns analog input bytes packed as a u32. Values are specific to controller type.
virtual std::optional<u32> GetAnalogInputBytes() const;