summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/Android/Android.h
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2018-09-21 17:05:46 +0200
committerGitHub <noreply@github.com>2018-09-21 17:05:46 +0200
commit85961f996ef1c142b056c29bd88456bf2d0d00c9 (patch)
treee801c250d6e3ce5075521b0f8e078ca81802db9f /Source/Core/InputCommon/ControllerInterface/Android/Android.h
parenta61036abfed95e8d1e193222e7eaa23fac4c6f43 (diff)
parent1f3447113063150b1793a325e9299ba1d42aab80 (diff)
Merge pull request #7400 from zackhow/phone-rumble
Android: Add rumble for phone
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Android/Android.h')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/Android/Android.h13
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);