summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2015-07-21 21:28:32 -0500
committerRyan Houdek <Sonicadvance1@gmail.com>2015-07-21 21:33:23 -0500
commita8227ad9b1430d8891f1c6221374dadd94a3a534 (patch)
tree830f0fdeeafedf1ca0a11e80d3c0e78a3bf8b822 /Source/Core/InputCommon/ControllerInterface/Android/Android.cpp
parentc8d1824eb082cdbd3d616931ab775c3f72681015 (diff)
Add Wiimote support to the Android backend.
Not actually wired up to the Android UI for configuration.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Android/Android.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/Android/Android.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp b/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp
index b0539b520f..24c6efebe9 100644
--- a/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp
@@ -17,6 +17,10 @@ void Init( std::vector<Core::Device*>& devices )
devices.push_back(new Touchscreen(1));
devices.push_back(new Touchscreen(2));
devices.push_back(new Touchscreen(3));
+ devices.push_back(new Touchscreen(4));
+ devices.push_back(new Touchscreen(5));
+ devices.push_back(new Touchscreen(6));
+ devices.push_back(new Touchscreen(7));
}
// Touchscreens and stuff
@@ -37,6 +41,7 @@ int Touchscreen::GetId() const
Touchscreen::Touchscreen(int padID)
: _padID(padID)
{
+ // GC
AddInput(new Button(_padID, ButtonManager::BUTTON_A));
AddInput(new Button(_padID, ButtonManager::BUTTON_B));
AddInput(new Button(_padID, ButtonManager::BUTTON_START));
@@ -53,6 +58,19 @@ Touchscreen::Touchscreen(int padID)
AddAnalogInputs(new Axis(_padID, ButtonManager::STICK_C_UP), new Axis(_padID, ButtonManager::STICK_C_DOWN));
AddAnalogInputs(new Axis(_padID, ButtonManager::TRIGGER_L), new Axis(_padID, ButtonManager::TRIGGER_L));
AddAnalogInputs(new Axis(_padID, ButtonManager::TRIGGER_R), new Axis(_padID, ButtonManager::TRIGGER_R));
+
+ // Wiimote
+ AddInput(new Button(_padID, ButtonManager::WIIMOTE_BUTTON_A));
+ AddInput(new Button(_padID, ButtonManager::WIIMOTE_BUTTON_B));
+ AddInput(new Button(_padID, ButtonManager::WIIMOTE_BUTTON_MINUS));
+ AddInput(new Button(_padID, ButtonManager::WIIMOTE_BUTTON_PLUS));
+ AddInput(new Button(_padID, ButtonManager::WIIMOTE_BUTTON_HOME));
+ AddInput(new Button(_padID, ButtonManager::WIIMOTE_BUTTON_1));
+ AddInput(new Button(_padID, ButtonManager::WIIMOTE_BUTTON_2));
+ AddInput(new Button(_padID, ButtonManager::WIIMOTE_UP));
+ AddInput(new Button(_padID, ButtonManager::WIIMOTE_DOWN));
+ AddInput(new Button(_padID, ButtonManager::WIIMOTE_LEFT));
+ AddInput(new Button(_padID, ButtonManager::WIIMOTE_RIGHT));
}
// Buttons and stuff