mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 23:41:19 +01:00
e63b07f73b
The ControllerConfigDiag design was getting confusing, so more significant changes needed to be done. Firstly, the GC controller and the Wiimote section layouts have been aligned for consistency. The Balance Board source chooser is a checkbox. The "general settings" that affect the SYSCONF have been moved to the Wii pane in the Config dialog. It makes more sense because those affect the Wii's settings in the NAND, unlike the other options. Another reason for moving it is that the Controller Config Dialog was getting pretty crowded, and the whole section is disabled when emulation is running, which is wasted space. The Wiimotes section is now organised by two radio buttons. One is for the Passthrough Mode, with sync/reset buttons under it; the other is the emulated Bluetooth mode, which still has the regular Wiimote source choosers, the Continuous Scanning controls and the Enable Speaker Data option (which only applies to the emulated BT mode). Hopefully this should make things a bit clearer and look cleaner. (This is a monolithic commit because separating UI changes is hard)
60 lines
1.5 KiB
C++
60 lines
1.5 KiB
C++
// Copyright 2015 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <wx/arrstr.h>
|
|
#include <wx/panel.h>
|
|
#include "Common/CommonTypes.h"
|
|
|
|
namespace DiscIO
|
|
{
|
|
enum class Language;
|
|
}
|
|
|
|
class wxCheckBox;
|
|
class wxChoice;
|
|
class wxSlider;
|
|
|
|
class WiiConfigPane final : public wxPanel
|
|
{
|
|
public:
|
|
WiiConfigPane(wxWindow* parent, wxWindowID id);
|
|
|
|
private:
|
|
void InitializeGUI();
|
|
void LoadGUIValues();
|
|
void RefreshGUI();
|
|
|
|
void OnScreenSaverCheckBoxChanged(wxCommandEvent&);
|
|
void OnPAL60CheckBoxChanged(wxCommandEvent&);
|
|
void OnSDCardCheckBoxChanged(wxCommandEvent&);
|
|
void OnConnectKeyboardCheckBoxChanged(wxCommandEvent&);
|
|
void OnSystemLanguageChoiceChanged(wxCommandEvent&);
|
|
void OnAspectRatioChoiceChanged(wxCommandEvent&);
|
|
|
|
void OnSensorBarPosChanged(wxCommandEvent&);
|
|
void OnSensorBarSensChanged(wxCommandEvent&);
|
|
void OnSpeakerVolumeChanged(wxCommandEvent&);
|
|
void OnWiimoteMotorChanged(wxCommandEvent&);
|
|
|
|
static u8 GetSADRCountryCode(DiscIO::Language language);
|
|
|
|
wxArrayString m_system_language_strings;
|
|
wxArrayString m_aspect_ratio_strings;
|
|
wxArrayString m_bt_sensor_bar_pos_strings;
|
|
|
|
wxCheckBox* m_screensaver_checkbox;
|
|
wxCheckBox* m_pal60_mode_checkbox;
|
|
wxCheckBox* m_sd_card_checkbox;
|
|
wxCheckBox* m_connect_keyboard_checkbox;
|
|
wxChoice* m_system_language_choice;
|
|
wxChoice* m_aspect_ratio_choice;
|
|
|
|
wxChoice* m_bt_sensor_bar_pos;
|
|
wxSlider* m_bt_sensor_bar_sens;
|
|
wxSlider* m_bt_speaker_volume;
|
|
wxCheckBox* m_bt_wiimote_motor;
|
|
};
|