mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-09-21 11:51:48 +02:00
Making changes to ConfigManager.h has always been a pain, because it means rebuilding half of Dolphin, since a lot of files depend on and include this header. However, it turns out some includes are unnecessary. This commit removes ConfigManager includes from files which don't contain SConfig or GPUDeterminismMode or GPU_DETERMINISM (which means the ConfigManager include is not used). (I've also had to get rid of some indirect includes.)
77 lines
2.3 KiB
C++
77 lines
2.3 KiB
C++
// Copyright 2010 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <array>
|
|
#include <map>
|
|
|
|
#include <wx/dialog.h>
|
|
|
|
#include "Core/HW/Wiimote.h"
|
|
#include "InputCommon/GCAdapter.h"
|
|
|
|
class InputConfig;
|
|
class wxCheckBox;
|
|
class wxChoice;
|
|
class wxRadioButton;
|
|
class wxStaticText;
|
|
|
|
class ControllerConfigDiag final : public wxDialog
|
|
{
|
|
public:
|
|
ControllerConfigDiag(wxWindow* const parent);
|
|
|
|
private:
|
|
void UpdateUI();
|
|
|
|
wxSizer* CreateGamecubeSizer();
|
|
wxSizer* CreateWiimoteConfigSizer();
|
|
wxSizer* CreatePassthroughBTConfigSizer();
|
|
wxSizer* CreateEmulatedBTConfigSizer();
|
|
|
|
void OnClose(wxCloseEvent& event);
|
|
void OnCloseButton(wxCommandEvent& event);
|
|
|
|
void OnWiimoteSourceChanged(wxCommandEvent& event);
|
|
void OnWiimoteConfigButton(wxCommandEvent& event);
|
|
void OnWiimoteRefreshButton(wxCommandEvent& event);
|
|
void SaveWiimoteSource();
|
|
|
|
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);
|
|
|
|
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;
|
|
|
|
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;
|
|
|
|
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;
|
|
std::array<wxStaticText*, MAX_WIIMOTES> m_wiimote_labels;
|
|
std::array<wxChoice*, MAX_WIIMOTES> m_wiimote_sources;
|
|
wxCheckBox* m_balance_board_checkbox;
|
|
|
|
wxCheckBox* m_enable_continuous_scanning;
|
|
wxButton* m_refresh_wm_button;
|
|
wxStaticText* m_unsupported_bt_text;
|
|
wxCheckBox* m_enable_speaker_data;
|
|
};
|