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 separately from HID devices. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6630 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
a85e9f1455
commit
0e466300dc
|
@ -807,7 +807,15 @@ void CFrame::OnKeyDown(wxKeyEvent& event)
|
||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
else
|
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
|
||||||
event.Skip();
|
event.Skip();
|
||||||
|
#endif
|
||||||
|
|
||||||
// Actually perform the wiimote connection or disconnection
|
// Actually perform the wiimote connection or disconnection
|
||||||
if (WiimoteId >= 0)
|
if (WiimoteId >= 0)
|
||||||
|
|
Loading…
Reference in New Issue