diff options
| author | OatmealDome <julian@oatmealdome.me> | 2019-11-27 01:34:01 -0500 |
|---|---|---|
| committer | OatmealDome <julian@oatmealdome.me> | 2019-11-28 15:20:51 -0500 |
| commit | ef32a10d6916785ae514982a9d2962145367bc99 (patch) | |
| tree | 00bae9ff1b1027d65b30d3ad6591049014b14688 /Source/Core/InputCommon/ControllerInterface/Android/Android.h | |
| parent | c2c8a14966dcea8d86a5ea5bb2eeb0f694002425 (diff) | |
InputCommon: Decouple ButtonManager and Touchscreen from Android
Changes were also made for codestyle compliance.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Android/Android.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Android/Android.h | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Android/Android.h b/Source/Core/InputCommon/ControllerInterface/Android/Android.h index c9e7ddc0a9..5b60487cfc 100644 --- a/Source/Core/InputCommon/ControllerInterface/Android/Android.h +++ b/Source/Core/InputCommon/ControllerInterface/Android/Android.h @@ -4,66 +4,9 @@ #pragma once -#include "InputCommon/ControllerInterface/ControllerInterface.h" -#include "jni/ButtonManager.h" - namespace ciface::Android { void SetMotionSensorsEnabled(bool accelerometer_enabled, bool gyroscope_enabled); void PopulateDevices(); - -class Touchscreen : public Core::Device -{ -private: - class Button : public Input - { - public: - std::string GetName() const; - Button(int padID, ButtonManager::ButtonType index) : _padID(padID), _index(index) {} - ControlState GetState() const; - - private: - const int _padID; - const ButtonManager::ButtonType _index; - }; - class Axis : public Input - { - public: - std::string GetName() const; - bool IsDetectable() override { return false; } - Axis(int padID, ButtonManager::ButtonType index, float neg = 1.0f) - : _padID(padID), _index(index), _neg(neg) - { - } - ControlState GetState() const; - - private: - const int _padID; - 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); - ~Touchscreen() {} - std::string GetName() const; - std::string GetSource() const; - -private: - const int _padID; -}; } // namespace ciface::Android |
