2015-05-24 04:32:32 +00:00
|
|
|
// Copyright 2010 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2010-07-03 08:04:10 +00:00
|
|
|
|
2014-11-22 20:29:13 +00:00
|
|
|
#include <array>
|
2014-02-17 10:18:15 +00:00
|
|
|
#include <map>
|
2016-09-12 18:25:36 +00:00
|
|
|
|
2014-02-22 22:36:30 +00:00
|
|
|
#include <wx/dialog.h>
|
2010-07-03 08:04:10 +00:00
|
|
|
|
2014-02-17 10:18:15 +00:00
|
|
|
#include "Core/ConfigManager.h"
|
|
|
|
#include "Core/HW/Wiimote.h"
|
2015-12-31 16:27:51 +00:00
|
|
|
#include "InputCommon/GCAdapter.h"
|
2014-02-22 22:36:30 +00:00
|
|
|
|
2014-08-31 04:04:15 +00:00
|
|
|
class InputConfig;
|
2016-09-12 18:25:36 +00:00
|
|
|
class wxCheckBox;
|
|
|
|
class wxChoice;
|
|
|
|
class wxRadioButton;
|
|
|
|
class wxStaticText;
|
2011-08-06 14:38:23 +00:00
|
|
|
|
2016-09-12 18:25:36 +00:00
|
|
|
class ControllerConfigDiag final : public wxDialog
|
2010-07-03 08:04:10 +00:00
|
|
|
{
|
|
|
|
public:
|
2016-06-24 08:43:46 +00:00
|
|
|
ControllerConfigDiag(wxWindow* const parent);
|
2011-08-06 14:38:23 +00:00
|
|
|
|
2015-04-28 00:48:04 +00:00
|
|
|
private:
|
2016-09-12 18:25:36 +00:00
|
|
|
void UpdateUI();
|
2016-08-23 14:19:30 +00:00
|
|
|
|
2016-08-02 06:22:44 +00:00
|
|
|
wxSizer* CreateGamecubeSizer();
|
|
|
|
wxSizer* CreateWiimoteConfigSizer();
|
|
|
|
wxSizer* CreatePassthroughBTConfigSizer();
|
|
|
|
wxSizer* CreateEmulatedBTConfigSizer();
|
2016-06-24 08:43:46 +00:00
|
|
|
|
2016-08-16 00:53:38 +00:00
|
|
|
void OnClose(wxCloseEvent& event);
|
|
|
|
void OnCloseButton(wxCommandEvent& event);
|
|
|
|
|
|
|
|
void OnWiimoteSourceChanged(wxCommandEvent& event);
|
|
|
|
void OnWiimoteConfigButton(wxCommandEvent& event);
|
|
|
|
void OnWiimoteRefreshButton(wxCommandEvent& event);
|
|
|
|
void SaveWiimoteSource();
|
2016-06-24 08:43:46 +00:00
|
|
|
|
2016-09-12 18:25:36 +00:00
|
|
|
void OnGameCubePortChanged(wxCommandEvent& event);
|
|
|
|
void OnGameCubeConfigButton(wxCommandEvent& event);
|
|
|
|
|
|
|
|
void OnBluetoothModeChanged(wxCommandEvent& event);
|
|
|
|
|
|
|
|
void OnPassthroughScanButton(wxCommandEvent& event);
|
|
|
|
void OnPassthroughResetButton(wxCommandEvent& event);
|
|
|
|
void OnBalanceBoardChanged(wxCommandEvent& event);
|
|
|
|
void OnContinuousScanning(wxCommandEvent& event);
|
|
|
|
void OnEnableSpeaker(wxCommandEvent& event);
|
|
|
|
|
2016-08-16 00:53:38 +00:00
|
|
|
std::map<wxWindowID, unsigned int> m_gc_port_from_choice_id;
|
|
|
|
std::map<wxWindowID, unsigned int> m_gc_port_from_config_id;
|
|
|
|
std::array<wxButton*, 4> m_gc_port_configure_button;
|
|
|
|
std::array<wxString, 8> m_gc_pad_type_strs;
|
2016-06-24 08:43:46 +00:00
|
|
|
|
2016-09-12 18:25:36 +00:00
|
|
|
wxRadioButton* m_passthrough_bt_radio;
|
|
|
|
wxRadioButton* m_emulated_bt_radio;
|
|
|
|
|
|
|
|
wxStaticText* m_passthrough_sync_text;
|
|
|
|
wxButton* m_passthrough_sync_btn;
|
|
|
|
wxStaticText* m_passthrough_reset_text;
|
|
|
|
wxButton* m_passthrough_reset_btn;
|
|
|
|
|
2016-08-16 00:53:38 +00:00
|
|
|
std::map<wxWindowID, unsigned int> m_wiimote_index_from_choice_id;
|
|
|
|
std::map<wxWindowID, unsigned int> m_wiimote_index_from_config_id;
|
|
|
|
std::array<wxButton*, MAX_WIIMOTES> m_wiimote_configure_button;
|
2016-09-12 18:25:36 +00:00
|
|
|
std::array<wxStaticText*, MAX_WIIMOTES> m_wiimote_labels;
|
|
|
|
std::array<wxChoice*, MAX_WIIMOTES> m_wiimote_sources;
|
|
|
|
wxCheckBox* m_balance_board_checkbox;
|
2016-08-23 14:19:30 +00:00
|
|
|
|
2016-09-12 18:25:36 +00:00
|
|
|
wxCheckBox* m_enable_continuous_scanning;
|
|
|
|
wxButton* m_refresh_wm_button;
|
2016-08-23 14:19:30 +00:00
|
|
|
wxStaticText* m_unsupported_bt_text;
|
|
|
|
wxCheckBox* m_enable_speaker_data;
|
2010-07-03 08:04:10 +00:00
|
|
|
};
|