summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/InputConfigDiag.cpp
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2015-01-17 09:36:05 +1100
committerskidau <skidau@gmail.com>2015-01-17 09:36:05 +1100
commit5e8ab05cc01d430fc0e4ccbf379369effd00485c (patch)
tree6d3eb8ab8f850017b6e919da51c2dc8c8d7ed37e /Source/Core/DolphinWX/InputConfigDiag.cpp
parent9d9ffa5b8321b371edd40547232852ff81d309bd (diff)
Added GameCube Keyboard support.
Diffstat (limited to 'Source/Core/DolphinWX/InputConfigDiag.cpp')
-rw-r--r--Source/Core/DolphinWX/InputConfigDiag.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/Core/DolphinWX/InputConfigDiag.cpp b/Source/Core/DolphinWX/InputConfigDiag.cpp
index ff1528dfa1..9a97e89127 100644
--- a/Source/Core/DolphinWX/InputConfigDiag.cpp
+++ b/Source/Core/DolphinWX/InputConfigDiag.cpp
@@ -1055,14 +1055,11 @@ InputConfigDialog::InputConfigDialog(wxWindow* const parent, InputConfig& config
, m_config(config)
{
m_pad_notebook = new wxNotebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxNB_DEFAULT);
- for (unsigned int i = 0; i < std::min(config.controllers.size(), (size_t)MAX_WIIMOTES); ++i)
- {
- GamepadPage* gp = new GamepadPage(m_pad_notebook, m_config, i, this);
- m_padpages.push_back(gp);
- m_pad_notebook->AddPage(gp, wxString::Format("%s %u", wxGetTranslation(StrToWxStr(m_config.gui_name)), 1+i));
- }
+ GamepadPage* gp = new GamepadPage(m_pad_notebook, m_config, tab_num, this);
+ m_padpages.push_back(gp);
+ m_pad_notebook->AddPage(gp, wxString::Format("%s [%u]", wxGetTranslation(StrToWxStr(m_config.gui_name)), 1 + tab_num));
- m_pad_notebook->SetSelection(tab_num);
+ m_pad_notebook->SetSelection(0);
UpdateDeviceComboBox();
UpdateProfileComboBox();