diff options
| author | zackhow <zackhow@gmail.com> | 2018-09-02 16:55:22 -0400 |
|---|---|---|
| committer | zackhow <zackhow@gmail.com> | 2018-09-07 08:54:03 -0400 |
| commit | 126ff8dc5f513b01c750cd15e19f9c1e7acf06db (patch) | |
| tree | bb5d1be0d899750aa840f1e3ccd82a294f9c7843 /Source/Core/InputCommon/ControllerInterface/Android/Android.h | |
| parent | 3405c7d420cb909e00a3140ab2e31b911afe176c (diff) | |
Android: Add rumble for phone
This currently only supports using the internal vibrate on a phone for rumble.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Android/Android.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Android/Android.h | 13 |
1 files changed, 13 insertions, 0 deletions
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); |
