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