winemac: Implement Beep().
This commit is contained in:
parent
0c183c4e79
commit
3fcb69b7ca
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
|
|
@ -764,6 +764,15 @@ void macdrv_keyboard_changed(const macdrv_event *event)
|
|||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* Beep (MACDRV.@)
|
||||
*/
|
||||
void CDECL macdrv_Beep(void)
|
||||
{
|
||||
macdrv_beep();
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* ToUnicodeEx (MACDRV.@)
|
||||
*
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue