WiimoteConfigDiag: Unify controller menu with the GameCube controllers.

This commit is contained in:
Lioncash
2014-12-01 03:36:04 -05:00
parent 00dcaba37d
commit e801fcead9
8 changed files with 171 additions and 217 deletions
+9 -3
View File
@@ -1,5 +1,6 @@
#pragma once
#include <array>
#include <map>
#include <wx/dialog.h>
#include <wx/event.h>
@@ -17,7 +18,7 @@ class wxWindow;
class WiimoteConfigDiag : public wxDialog
{
public:
WiimoteConfigDiag(wxWindow* const parent, InputConfig& config);
WiimoteConfigDiag(wxWindow* const parent);
void RefreshRealWiimotes(wxCommandEvent& event);
@@ -65,9 +66,14 @@ private:
wxStaticBoxSizer* CreateBalanceBoardSizer();
wxStaticBoxSizer* CreateRealWiimoteSizer();
wxStaticBoxSizer* CreateGeneralWiimoteSettingsSizer();
void Cancel(wxCommandEvent& event);
InputConfig& m_config;
void Cancel(wxCommandEvent& event);
void OnGameCubePortChanged(wxCommandEvent& event);
void OnGameCubeConfigButton(wxCommandEvent& event);
std::map<wxWindowID, unsigned int> m_gc_port_choice_ids;
std::map<wxWindowID, unsigned int> m_gc_port_config_ids;
static const std::array<wxString, 7> m_gc_pad_type_strs;
std::map<wxWindowID, unsigned int> m_wiimote_index_from_ctrl_id;
unsigned int m_orig_wiimote_sources[MAX_BBMOTES];