Move platform-specific variables into proper scope.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5484 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang
2010-05-26 20:46:51 +00:00
parent daf1069c27
commit cf62b10956
3 changed files with 3 additions and 3 deletions

View File

@ -206,7 +206,6 @@ void GCPadConfigDialog::OnKeyDown(wxKeyEvent& event)
// Save the key
g_Pressed = event.GetKeyCode();
// Handle the keyboard key mapping
char keyStr[128] = {0};
// Allow the escape key to set a blank key
if (g_Pressed == WXK_ESCAPE)
@ -234,6 +233,7 @@ void GCPadConfigDialog::OnKeyDown(wxKeyEvent& event)
}
}
#elif defined(HAVE_X11) && HAVE_X11
char keyStr[128] = {0};
int XKey = InputCommon::wxCharCodeWXToX(g_Pressed);
InputCommon::XKeyToString(XKey, keyStr);
SetButtonText(ClickedButton->GetId(),