Fixes Issue 2180
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4981 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
9a49e91e41
commit
f9dd509459
|
@ -100,6 +100,7 @@ GCPadConfigDialog::GCPadConfigDialog(wxWindow *parent, wxWindowID id, const wxSt
|
|||
|
||||
// Reset values
|
||||
g_Pressed = 0;
|
||||
ClickedButton = NULL;
|
||||
GetButtonWaitingID = 0;
|
||||
GetButtonWaitingTimer = 0;
|
||||
|
||||
|
@ -186,7 +187,7 @@ void GCPadConfigDialog::SaveButtonMapping(int Id, int Key)
|
|||
|
||||
void GCPadConfigDialog::OnKeyDown(wxKeyEvent& event)
|
||||
{
|
||||
event.Skip();
|
||||
//event.Skip();
|
||||
|
||||
if(ClickedButton != NULL)
|
||||
{
|
||||
|
|
|
@ -117,9 +117,7 @@ WiimotePadConfigDialog::WiimotePadConfigDialog(wxWindow *parent, wxWindowID id,
|
|||
: wxDialog(parent, id, title, position, size, style)
|
||||
{
|
||||
m_ControlsCreated = false;;
|
||||
m_Page = g_Config.CurrentPage;
|
||||
CreatePadGUIControls();
|
||||
m_Notebook->ChangeSelection(m_Page);
|
||||
|
||||
#if wxUSE_TIMER
|
||||
m_ButtonMappingTimer = new wxTimer(this, IDTM_BUTTON);
|
||||
|
@ -139,6 +137,8 @@ WiimotePadConfigDialog::WiimotePadConfigDialog(wxWindow *parent, wxWindowID id,
|
|||
}
|
||||
#endif
|
||||
|
||||
m_Page = g_Config.CurrentPage;
|
||||
m_Notebook->ChangeSelection(m_Page);
|
||||
// Set control values
|
||||
UpdateGUI();
|
||||
|
||||
|
@ -211,7 +211,7 @@ void WiimotePadConfigDialog::SaveButtonMapping(int Id, int Key)
|
|||
|
||||
void WiimotePadConfigDialog::OnKeyDown(wxKeyEvent& event)
|
||||
{
|
||||
event.Skip();
|
||||
//event.Skip();
|
||||
|
||||
if(ClickedButton != NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue