diff options
| author | Glenn Rice <glennricster@gmail.com> | 2011-01-15 15:48:04 +0000 |
|---|---|---|
| committer | Glenn Rice <glennricster@gmail.com> | 2011-01-15 15:48:04 +0000 |
| commit | 2add956cbad2a10ea736cefe21d139822ec94f01 (patch) | |
| tree | 80cf4a629d8aac7c7c2caebe1be8e6e4324a1415 /Source | |
| parent | 8c0f17eece43c4108cf0b7b0fa22eba4520a321c (diff) | |
Make the "IR Sensitivity" slider work on linux. Also clean up the appearance of the Audio config dialogs on linux and OSX a bit. It doesn't change the appearance on windows.
Mark a couple of strings for translation that were missed before.
Update some of the languages from the translators.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6856 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
4 files changed, 26 insertions, 26 deletions
diff --git a/Source/Core/Core/Src/HW/WiimoteEmu/Attachment/Classic.cpp b/Source/Core/Core/Src/HW/WiimoteEmu/Attachment/Classic.cpp index f15d6b6e93..ab54555aeb 100644 --- a/Source/Core/Core/Src/HW/WiimoteEmu/Attachment/Classic.cpp +++ b/Source/Core/Core/Src/HW/WiimoteEmu/Attachment/Classic.cpp @@ -49,35 +49,35 @@ static const u16 classic_dpad_bitmasks[] = Classic::PAD_UP, Classic::PAD_DOWN, Classic::PAD_LEFT, Classic::PAD_RIGHT }; -Classic::Classic() : Attachment( _trans("Classic") ) +Classic::Classic() : Attachment(_trans("Classic")) { // buttons - groups.push_back( m_buttons = new Buttons( "Buttons" ) ); - for ( unsigned int i = 0; i < sizeof(classic_button_names)/sizeof(*classic_button_names); ++i ) - m_buttons->controls.push_back( new ControlGroup::Input( classic_button_names[i] ) ); + groups.push_back(m_buttons = new Buttons("Buttons")); + for (unsigned int i = 0; i < sizeof(classic_button_names)/sizeof(*classic_button_names); ++i) + m_buttons->controls.push_back(new ControlGroup::Input(classic_button_names[i])); // sticks - groups.push_back( m_left_stick = new AnalogStick( "Left Stick" ) ); - groups.push_back( m_right_stick = new AnalogStick( "Right Stick" ) ); + groups.push_back(m_left_stick = new AnalogStick(_trans("Left Stick"))); + groups.push_back(m_right_stick = new AnalogStick(_trans("Right Stick"))); // triggers - groups.push_back( m_triggers = new MixedTriggers( "Triggers" ) ); - for ( unsigned int i=0; i < sizeof(classic_trigger_names)/sizeof(*classic_trigger_names); ++i ) - m_triggers->controls.push_back( new ControlGroup::Input( classic_trigger_names[i] ) ); + groups.push_back(m_triggers = new MixedTriggers("Triggers")); + for (unsigned int i=0; i < sizeof(classic_trigger_names)/sizeof(*classic_trigger_names); ++i) + m_triggers->controls.push_back(new ControlGroup::Input(classic_trigger_names[i])); // dpad - groups.push_back( m_dpad = new Buttons( "D-Pad" ) ); - for ( unsigned int i=0; i < 4; ++i ) - m_dpad->controls.push_back( new ControlGroup::Input( named_directions[i] ) ); + groups.push_back(m_dpad = new Buttons("D-Pad")); + for (unsigned int i=0; i < 4; ++i) + m_dpad->controls.push_back(new ControlGroup::Input(named_directions[i])); // set up register // calibration - memcpy( ®[0x20], classic_calibration, sizeof(classic_calibration) ); + memcpy(®[0x20], classic_calibration, sizeof(classic_calibration)); // id - memcpy( ®[0xfa], classic_id, sizeof(classic_id) ); + memcpy(®[0xfa], classic_id, sizeof(classic_id)); } -void Classic::GetState( u8* const data, const bool focus ) +void Classic::GetState(u8* const data, const bool focus) { wm_classic_extension* const ccdata = (wm_classic_extension*)data; ccdata->bt = 0; @@ -87,7 +87,7 @@ void Classic::GetState( u8* const data, const bool focus ) // left stick { u8 x, y; - m_left_stick->GetState( &x, &y, 0x20, focus ? 0x1F /*0x15*/ : 0 ); + m_left_stick->GetState(&x, &y, 0x20, focus ? 0x1F /*0x15*/ : 0); ccdata->lx = x; ccdata->ly = y; @@ -96,7 +96,7 @@ void Classic::GetState( u8* const data, const bool focus ) // right stick { u8 x, y; - m_right_stick->GetState( &x, &y, 0x10, focus ? 0x0F /*0x0C*/ : 0 ); + m_right_stick->GetState(&x, &y, 0x10, focus ? 0x0F /*0x0C*/ : 0); ccdata->rx1 = x; ccdata->rx2 = x >> 1; @@ -107,7 +107,7 @@ void Classic::GetState( u8* const data, const bool focus ) //triggers { u8 trigs[2]; - m_triggers->GetState( &ccdata->bt, classic_trigger_bitmasks, trigs, focus ? 0x1F : 0 ); + m_triggers->GetState(&ccdata->bt, classic_trigger_bitmasks, trigs, focus ? 0x1F : 0); ccdata->lt1 = trigs[0]; ccdata->lt2 = trigs[0] >> 3; @@ -117,9 +117,9 @@ void Classic::GetState( u8* const data, const bool focus ) if (focus) { // buttons - m_buttons->GetState( &ccdata->bt, classic_button_bitmasks ); + m_buttons->GetState(&ccdata->bt, classic_button_bitmasks); // dpad - m_dpad->GetState( &ccdata->bt, classic_dpad_bitmasks ); + m_dpad->GetState(&ccdata->bt, classic_dpad_bitmasks); } // flip button bits diff --git a/Source/Core/DolphinWX/Src/ConfigMain.cpp b/Source/Core/DolphinWX/Src/ConfigMain.cpp index 250dd039a1..20168e2789 100644 --- a/Source/Core/DolphinWX/Src/ConfigMain.cpp +++ b/Source/Core/DolphinWX/Src/ConfigMain.cpp @@ -697,7 +697,7 @@ void CConfigMain::CreateGUIControls() sWiimoteSettings->Add(WiiSensBarPosText, wxGBPosition(0, 0), wxDefaultSpan, wxALIGN_CENTER_VERTICAL|wxALL, 5); sWiimoteSettings->Add(WiiSensBarPos, wxGBPosition(0, 1), wxDefaultSpan, wxALL, 5); sWiimoteSettings->Add(WiiSensBarSensText, wxGBPosition(1, 0), wxDefaultSpan, wxALIGN_CENTER_VERTICAL|wxALL, 5); - sWiimoteSettings->Add(WiiSensBarSens, wxGBPosition(1, 1), wxDefaultSpan, wxALL, 5); + sWiimoteSettings->Add(WiiSensBarSens, wxGBPosition(1, 1), wxDefaultSpan, wxEXPAND|wxALL, 5); sWiimoteSettings->Add(WiimoteMotor, wxGBPosition(2, 0), wxGBSpan(1, 2), wxALL, 5); sbWiimoteSettings->Add(sWiimoteSettings); diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/ConfigDlg.cpp b/Source/Plugins/Plugin_DSP_HLE/Src/ConfigDlg.cpp index a9824c23e0..96221c6f08 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Src/ConfigDlg.cpp +++ b/Source/Plugins/Plugin_DSP_HLE/Src/ConfigDlg.cpp @@ -48,12 +48,12 @@ DSPConfigDialogHLE::DSPConfigDialogHLE(wxWindow *parent, wxWindowID id, wxStaticText *FrequencyText = new wxStaticText(this, wxID_ANY, _("Sample Rate"), wxDefaultPosition, wxDefaultSize, 0); - m_FrequencySelection = new wxChoice(this, ID_FREQUENCY, wxDefaultPosition, wxSize(110, 20), + m_FrequencySelection = new wxChoice(this, ID_FREQUENCY, wxDefaultPosition, wxDefaultSize, wxArrayRates, 0, wxDefaultValidator, wxEmptyString); wxStaticText *BackendText = new wxStaticText(this, wxID_ANY, _("Audio Backend"), wxDefaultPosition, wxDefaultSize, 0); - m_BackendSelection = new wxChoice(this, ID_BACKEND, wxDefaultPosition, wxSize(110, 20), + m_BackendSelection = new wxChoice(this, ID_BACKEND, wxDefaultPosition, wxDefaultSize, wxArrayBackends, 0, wxDefaultValidator, wxEmptyString); m_volumeSlider = new wxSlider(this, ID_VOLUME, ac_Config.m_Volume, 1, 100, @@ -90,8 +90,8 @@ DSPConfigDialogHLE::DSPConfigDialogHLE(wxWindow *parent, wxWindowID id, sFrequency->Add(FrequencyText, 0, wxALIGN_LEFT|wxALL, 1); sFrequency->Add(m_FrequencySelection, 0, wxALL, 1); - m_FrequencySelection->Append(wxString::FromAscii("48,000 Hz")); - m_FrequencySelection->Append(wxString::FromAscii("32,000 Hz")); + m_FrequencySelection->Append(_("48,000 Hz")); + m_FrequencySelection->Append(_("32,000 Hz")); #ifdef __APPLE__ int num = m_FrequencySelection->FindString(wxString::FromAscii(ac_Config.sFrequency)); #else diff --git a/Source/Plugins/Plugin_DSP_LLE/Src/DSPConfigDlgLLE.cpp b/Source/Plugins/Plugin_DSP_LLE/Src/DSPConfigDlgLLE.cpp index 1c57ec1c24..8a982e59a3 100644 --- a/Source/Plugins/Plugin_DSP_LLE/Src/DSPConfigDlgLLE.cpp +++ b/Source/Plugins/Plugin_DSP_LLE/Src/DSPConfigDlgLLE.cpp @@ -44,7 +44,7 @@ DSPConfigDialogLLE::DSPConfigDialogLLE(wxWindow *parent, wxWindowID id, const wx m_buttonEnableThrottle = new wxCheckBox(this, ID_ENABLE_THROTTLE, _("Enable Audio Throttle"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator); m_buttonEnableJIT = new wxCheckBox(this, ID_ENABLE_JIT, _("Enable JIT Dynarec"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator); wxStaticText *BackendText = new wxStaticText(this, wxID_ANY, _("Audio Backend"), wxDefaultPosition, wxDefaultSize, 0); - m_BackendSelection = new wxChoice(this, ID_BACKEND, wxDefaultPosition, wxSize(110, 20), wxArrayBackends, 0, wxDefaultValidator, wxEmptyString); + m_BackendSelection = new wxChoice(this, ID_BACKEND, wxDefaultPosition, wxDefaultSize, wxArrayBackends, 0, wxDefaultValidator, wxEmptyString); m_volumeSlider = new wxSlider(this, ID_VOLUME, ac_Config.m_Volume, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_VERTICAL|wxSL_INVERSE); m_volumeSlider->Enable(SupportsVolumeChanges(ac_Config.sBackend)); |
