diff options
| author | Anthony <Helios747@users.noreply.github.com> | 2019-11-28 14:58:55 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-28 14:58:55 -0800 |
| commit | d9847fc249a3ba4da8d5eef3fce80fddaf9368b1 (patch) | |
| tree | 5661c1705f35680f33fe124008baff94cf772b27 /Source/Core/InputCommon/ControllerInterface/Android/Android.h | |
| parent | b793ee6521b7451fc1e9185e46d66c8af9496de5 (diff) | |
| parent | ef32a10d6916785ae514982a9d2962145367bc99 (diff) | |
Merge pull request #8497 from OatmealDome/touchscreen-decoupling
InputCommon: Decouple ButtonManager and Touchscreen from Android
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 |
