2015-05-23 22:32:32 -06:00
|
|
|
// Copyright 2010 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2014-02-10 11:54:46 -07:00
|
|
|
#pragma once
|
2010-07-03 02:04:10 -06:00
|
|
|
|
2014-11-22 13:29:13 -07:00
|
|
|
#include <array>
|
2014-02-17 03:18:15 -07:00
|
|
|
#include <map>
|
2016-09-12 12:25:36 -06:00
|
|
|
|
2014-02-22 15:36:30 -07:00
|
|
|
#include <wx/dialog.h>
|
2010-07-03 02:04:10 -06:00
|
|
|
|
2014-02-17 03:18:15 -07:00
|
|
|
#include "Core/HW/Wiimote.h"
|
2015-12-31 09:27:51 -07:00
|
|
|
#include "InputCommon/GCAdapter.h"
|
2014-02-22 15:36:30 -07:00
|
|
|
|
2014-08-30 22:04:15 -06:00
|
|
|
class InputConfig;
|
2016-09-12 12:25:36 -06:00
|
|
|
class wxCheckBox;
|
|
|
|
class wxChoice;
|
|
|
|
class wxRadioButton;
|
|
|
|
class wxStaticText;
|
2011-08-06 08:38:23 -06:00
|
|
|
|
2016-09-12 12:25:36 -06:00
|
|
|
class ControllerConfigDiag final : public wxDialog
|
2010-07-03 02:04:10 -06:00
|
|
|
{
|
|
|
|
public:
|
2016-06-24 02:43:46 -06:00
|
|
|
ControllerConfigDiag(wxWindow* const parent);
|
2011-08-06 08:38:23 -06:00
|
|
|
|
2015-04-27 18:48:04 -06:00
|
|
|
private:
|
2016-09-12 12:25:36 -06:00
|
|
|
void UpdateUI();
|
2016-08-23 08:19:30 -06:00
|
|
|
|
2016-08-02 00:22:44 -06:00
|
|
|
wxSizer* CreateGamecubeSizer();
|
|
|
|
wxSizer* CreateWiimoteConfigSizer();
|
|
|
|
wxSizer* CreatePassthroughBTConfigSizer();
|
|
|
|
wxSizer* CreateEmulatedBTConfigSizer();
|
2017-02-07 19:27:22 -07:00
|
|
|
wxSizer* CreateAdvancedSettingsSizer();
|
2016-06-24 02:43:46 -06:00
|
|
|
|
2016-08-15 18:53:38 -06:00
|
|
|
void OnClose(wxCloseEvent& event);
|
|
|
|
void OnCloseButton(wxCommandEvent& event);
|
|
|
|
|
|
|
|
void OnWiimoteSourceChanged(wxCommandEvent& event);
|
|
|
|
void OnWiimoteConfigButton(wxCommandEvent& event);
|
|
|
|
void OnWiimoteRefreshButton(wxCommandEvent& event);
|
2016-06-24 02:43:46 -06:00
|
|
|
|
2016-09-12 12:25:36 -06: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);
|
|
|
|
|
2017-02-07 19:27:22 -07:00
|
|
|
void OnBackgroundInputChanged(wxCommandEvent& event);
|
|
|
|
|
2016-08-15 18:53:38 -06: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 02:43:46 -06:00
|
|
|
|
2016-09-12 12:25:36 -06: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-15 18:53:38 -06: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 12:25:36 -06: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 08:19:30 -06:00
|
|
|
|
2016-09-12 12:25:36 -06:00
|
|
|
wxCheckBox* m_enable_continuous_scanning;
|
|
|
|
wxButton* m_refresh_wm_button;
|
2016-08-23 08:19:30 -06:00
|
|
|
wxStaticText* m_unsupported_bt_text;
|
|
|
|
wxCheckBox* m_enable_speaker_data;
|
2017-02-07 19:27:22 -07:00
|
|
|
|
|
|
|
wxCheckBox* m_background_input_checkbox;
|
2010-07-03 02:04:10 -06:00
|
|
|
};
|