summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/Android/Android.h
diff options
context:
space:
mode:
authorzackhow <zackhow@gmail.com>2018-09-02 16:55:22 -0400
committerzackhow <zackhow@gmail.com>2018-09-07 08:54:03 -0400
commit126ff8dc5f513b01c750cd15e19f9c1e7acf06db (patch)
treebb5d1be0d899750aa840f1e3ccd82a294f9c7843 /Source/Core/InputCommon/ControllerInterface/Android/Android.h
parent3405c7d420cb909e00a3140ab2e31b911afe176c (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.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);