Android: Add rumble for phone

This currently only supports using the internal vibrate on a phone for rumble.
This commit is contained in:
zackhow
2018-09-02 16:55:22 -04:00
parent 3405c7d420
commit 126ff8dc5f
12 changed files with 126 additions and 1 deletions

View File

@ -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);