From 126ff8dc5f513b01c750cd15e19f9c1e7acf06db Mon Sep 17 00:00:00 2001 From: zackhow Date: Sun, 2 Sep 2018 16:55:22 -0400 Subject: Android: Add rumble for phone This currently only supports using the internal vibrate on a phone for rumble. --- .../Core/InputCommon/ControllerInterface/Android/Android.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Source/Core/InputCommon/ControllerInterface/Android/Android.h') diff --git a/Source/Core/InputCommon/ControllerInterface/Android/Android.h b/Source/Core/InputCommon/ControllerInterface/Android/Android.h index bf588719c2..deb23539ce 100644 --- a/Source/Core/InputCommon/ControllerInterface/Android/Android.h +++ b/Source/Core/InputCommon/ControllerInterface/Android/Android.h @@ -41,6 +41,19 @@ private: const ButtonManager::ButtonType _index; const float _neg; }; + class Motor : public Core::Device::Output + { + public: + Motor(int padID, ButtonManager::ButtonType index) : _padID(padID), _index(index) {} + ~Motor(); + std::string GetName() const override; + void SetState(ControlState state) override; + + private: + const int _padID; + const ButtonManager::ButtonType _index; + static void Rumble(int padID, double state); + }; public: Touchscreen(int padID); -- cgit v1.2.3