winemac: Implement Beep().

This commit is contained in:
Ken Thomases 2013-02-06 04:36:49 -06:00 committed by Alexandre Julliard
parent 0c183c4e79
commit 3fcb69b7ca
4 changed files with 23 additions and 0 deletions

View File

@ -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();
});
}

View File

@ -764,6 +764,15 @@ void macdrv_keyboard_changed(const macdrv_event *event)
}
/***********************************************************************
* Beep (MACDRV.@)
*/
void CDECL macdrv_Beep(void)
{
macdrv_beep();
}
/***********************************************************************
* ToUnicodeEx (MACDRV.@)
*

View File

@ -115,6 +115,7 @@
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 */

View File

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