Fix some not-so-obvious breakage in Frame.cpp, removed Xlib from the build (its only for non-win32)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5321 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
j4ck.fr0st 2010-04-10 21:14:18 +00:00
parent a5edf59787
commit c3b1705e3f
2 changed files with 5 additions and 20 deletions

View File

@ -823,17 +823,14 @@ void CFrame::OnKeyDown(wxKeyEvent& event)
else if (! (Core::GetState() == Core::CORE_RUN && bRenderToMain && event.GetEventObject() == this))
event.Skip();
#ifdef _WIN32
if(event.GetKeyCode() == 'M', '3', '4', '5', '6', '7') // Send this to the video plugin WndProc
{
PostMessage((HWND)Core::GetWindowHandle(), WM_USER, WM_USER_KEYDOWN, event.GetKeyCode());
}
#elif defined(HAVE_X11) && HAVE_X11 && defined(HAVE_GTK2) && HAVE_GTK2 && defined(wxGTK)
if (event.GetKeyCode() >= '3' && event.GetKeyCode() <= '7') // Send this to the video plugin
{
#ifdef _WIN32
PostMessage((HWND)Core::GetWindowHandle(), WM_USER, WM_USER_KEYDOWN, event.GetKeyCode());
#elif defined(HAVE_X11) && HAVE_X11 && defined(HAVE_GTK2) && HAVE_GTK2 && defined(wxGTK)
X11_SendKeyEvent(event.GetKeyCode());
}
#endif
}
// Send the keyboard status to the Input plugin
CPluginManager::GetInstance().GetPad(0)->PAD_Input(event.GetKeyCode(), 1); // 1 = Down

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Version="9,00"
Name="Plugin_GCPadNew"
ProjectGUID="{1C3A7A91-A97F-4C7C-B45D-26F2242904D7}"
RootNamespace="Plugin_GCPadNew"
@ -621,18 +621,6 @@
>
</File>
</Filter>
<Filter
Name="Xlib"
>
<File
RelativePath=".\Src\ControllerInterface\Xlib\Xlib.cpp"
>
</File>
<File
RelativePath=".\Src\ControllerInterface\Xlib\Xlib.h"
>
</File>
</Filter>
</Filter>
<Filter
Name="ControllerEmu"