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:
parent
c1b18457c4
commit
92ef5e144a
|
@ -173,7 +173,7 @@ IVolume::ECountry CVolumeWiiCrypted::GetCountry() const
|
|||
break; // SDK
|
||||
|
||||
default:
|
||||
PanicAlert(StringFromFormat("Unknown Country Code!").c_str());
|
||||
PanicAlert("Unknown Country Code!");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue