Small cleanup. Pad configuration *should* work on my Linux machine now. I'll verify it tomorrow.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3422 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY 2009-06-13 11:59:58 +00:00
parent c1b18457c4
commit 92ef5e144a
2 changed files with 7 additions and 5 deletions

View File

@ -173,7 +173,7 @@ IVolume::ECountry CVolumeWiiCrypted::GetCountry() const
break; // SDK
default:
PanicAlert(StringFromFormat("Unknown Country Code!").c_str());
PanicAlert("Unknown Country Code!");
break;
}

View File

@ -76,6 +76,11 @@ ConfigDialog::ConfigDialog(wxWindow *parent, wxWindowID id, const wxString &titl
ClickedButton = NULL;
CreateGUIControls();
Fit();
// Connect keydown to the window
wxTheApp->Connect(wxID_ANY, wxEVT_KEY_DOWN,
wxKeyEventHandler(ConfigDialog::OnKeyDown),
(wxObject*)NULL, this);
}
ConfigDialog::~ConfigDialog()
@ -376,10 +381,7 @@ void ConfigDialog::OnButtonClick(wxCommandEvent& event)
oldLabel = ClickedButton->GetLabel();
ClickedButton->SetLabel(_("Press Key"));
// Connect EVT_KEY_DOWN to OnKeyDown()
ClickedButton->Connect(wxID_ANY, wxEVT_KEY_DOWN,
wxKeyEventHandler(ConfigDialog::OnKeyDown),
(wxObject*)NULL, this);
ClickedButton->SetWindowStyle(wxWANTS_CHARS);
}
void ConfigDialog::OnCloseClick(wxCommandEvent& event)