From 2e1aa64958ec767180e8a592cb51e5caa8db92b8 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Thu, 12 Dec 2013 21:24:39 -0600 Subject: [Android] Fix joysticks only capable of right/down movements. Also make it capable of using onscreen joystick even if controller 1 is bound. --- Source/Core/InputCommon/Src/ControllerInterface/Android/Android.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Core/InputCommon/Src/ControllerInterface/Android/Android.h') diff --git a/Source/Core/InputCommon/Src/ControllerInterface/Android/Android.h b/Source/Core/InputCommon/Src/ControllerInterface/Android/Android.h index 8b1fd99c23..93e528f013 100644 --- a/Source/Core/InputCommon/Src/ControllerInterface/Android/Android.h +++ b/Source/Core/InputCommon/Src/ControllerInterface/Android/Android.h @@ -43,11 +43,12 @@ private: { public: std::string GetName() const; - Axis(int padID, ButtonManager::ButtonType index) : _padID(padID), _index(index) {} + 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; }; public: -- cgit v1.2.3