Commit 3fcb69b7 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Implement Beep().

parent 0c183c4e
......@@ -373,3 +373,15 @@ CFDataRef macdrv_copy_keyboard_layout(CGEventSourceKeyboardType* keyboard_type,
return result;
}
/***********************************************************************
* macdrv_beep
*
* Play the beep sound configured by the user in System Preferences.
*/
void macdrv_beep(void)
{
OnMainThreadAsync(^{
NSBeep();
});
}
......@@ -765,6 +765,15 @@ void macdrv_keyboard_changed(const macdrv_event *event)
/***********************************************************************
* Beep (MACDRV.@)
*/
void CDECL macdrv_Beep(void)
{
macdrv_beep();
}
/***********************************************************************
* ToUnicodeEx (MACDRV.@)
*
* The ToUnicode function translates the specified virtual-key code and keyboard
......
......@@ -115,6 +115,7 @@ extern int macdrv_err_on;
extern int macdrv_start_cocoa_app(unsigned long long tickcount) DECLSPEC_HIDDEN;
extern void macdrv_window_rejected_focus(const struct macdrv_event *event) DECLSPEC_HIDDEN;
extern void macdrv_beep(void) DECLSPEC_HIDDEN;
/* display */
......
......@@ -4,6 +4,7 @@
# USER driver
@ cdecl Beep() macdrv_Beep
@ cdecl CreateDesktopWindow(long) macdrv_CreateDesktopWindow
@ cdecl CreateWindow(long) macdrv_CreateWindow
@ cdecl DestroyWindow(long) macdrv_DestroyWindow
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment