summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/Android
diff options
context:
space:
mode:
authorLinktothepast <kostamarino@gmail.com>2015-09-28 16:50:35 +0300
committerLinktothepast <kostamarino@gmail.com>2015-09-28 16:50:35 +0300
commit748be565b8df535ef558e74b38cd0f4d615f8a21 (patch)
treeb151efee0a87e99125f2401325a9bddecf84fc73 /Source/Core/InputCommon/ControllerInterface/Android
parentcf17fccdd3093a1b8476b10183b1c4bde36da74d (diff)
parentce493b897d6d3735c930a8465cc0c26bbe5feb86 (diff)
Merge remote-tracking branch 'dolphin-emu/master' into gameinis
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Android')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/Android/Android.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp b/Source/Core/InputCommon/ControllerInterface/Android/Android.cpp
index b0539b520f..7cf0f628bd 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
@@ -32,11 +36,12 @@ std::string Touchscreen::GetSource() const
int Touchscreen::GetId() const
{
- return 0;
+ return _padID;
}
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