Clarify comment about the use of event.Skip().

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6649 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang 2010-12-22 20:25:24 +00:00
parent edbc06bd18
commit 055a056ddc
1 changed files with 8 additions and 7 deletions

View File

@ -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