diff options
| author | Soren Jorvang <soren.jorvang@gmail.com> | 2010-12-22 20:25:24 +0000 |
|---|---|---|
| committer | Soren Jorvang <soren.jorvang@gmail.com> | 2010-12-22 20:25:24 +0000 |
| commit | 055a056ddc8f5098ddbf269aa0f90afdbf3ecc7d (patch) | |
| tree | eb9071b6f642490975e26f5984ea6be041b0142d /Source/Core | |
| parent | edbc06bd1804f6a379fd36719f5711d1dda7f38d (diff) | |
Clarify comment about the use of event.Skip().
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6649 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinWX/Src/Frame.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Source/Core/DolphinWX/Src/Frame.cpp b/Source/Core/DolphinWX/Src/Frame.cpp index 0481914127..5ef463b391 100644 --- a/Source/Core/DolphinWX/Src/Frame.cpp +++ b/Source/Core/DolphinWX/Src/Frame.cpp @@ -807,13 +807,14 @@ void CFrame::OnKeyDown(wxKeyEvent& event) event.Skip(); } else -#ifdef __APPLE__ - // We claim all keyboard events while emulation is - // running to avoid wxWidgets sounding the system beep - // for unhandled key events when receiving pad/wiimote - // keypresses separately from HID devices. - return; -#else + // On OS X, we claim all keyboard events while + // emulation is running to avoid wxWidgets sounding + // the system beep for unhandled key events when + // receiving pad/wiimote keypresses which take an + // entirely different path through the HID subsystem. +#ifndef __APPLE__ + // On other platforms, we leave the key event alone + // so it can be passed on to the windowing system. event.Skip(); #endif |
