diff options
| author | Dentomologist <dentomologist@gmail.com> | 2021-03-05 10:33:46 -0800 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2021-03-07 10:10:02 -0800 |
| commit | 486a25dd2b3f3790a9dc7a4dd432ca91377b14b3 (patch) | |
| tree | 4d2ff34075658571d0c74a3c052967b41a655f9c /Source/Core/InputCommon/ControllerInterface | |
| parent | 1fd332d3b7950a5c59cc0eb34885904a308546e2 (diff) | |
Touchscreen: Add override specifiers
Fix -Winconsistent-missing-override warnings on Android
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Touch/Touchscreen.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Touch/Touchscreen.h b/Source/Core/InputCommon/ControllerInterface/Touch/Touchscreen.h index ec060040d4..a47f24ec6a 100644 --- a/Source/Core/InputCommon/ControllerInterface/Touch/Touchscreen.h +++ b/Source/Core/InputCommon/ControllerInterface/Touch/Touchscreen.h @@ -15,9 +15,9 @@ private: class Button : public Input { public: - std::string GetName() const; + std::string GetName() const override; Button(int pad_id, ButtonManager::ButtonType index) : m_pad_id(pad_id), m_index(index) {} - ControlState GetState() const; + ControlState GetState() const override; private: const int m_pad_id; @@ -26,13 +26,13 @@ private: class Axis : public Input { public: - std::string GetName() const; + std::string GetName() const override; bool IsDetectable() const override { return false; } Axis(int pad_id, ButtonManager::ButtonType index, float neg = 1.0f) : m_pad_id(pad_id), m_index(index), m_neg(neg) { } - ControlState GetState() const; + ControlState GetState() const override; private: const int m_pad_id; @@ -56,8 +56,8 @@ private: public: Touchscreen(int pad_id, bool accelerometer_enabled, bool gyroscope_enabled); ~Touchscreen() {} - std::string GetName() const; - std::string GetSource() const; + std::string GetName() const override; + std::string GetSource() const override; private: const int m_pad_id; |
