Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3fcb69b7
Commit
3fcb69b7
authored
Feb 06, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Feb 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Implement Beep().
parent
0c183c4e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
0 deletions
+23
-0
cocoa_app.m
dlls/winemac.drv/cocoa_app.m
+12
-0
keyboard.c
dlls/winemac.drv/keyboard.c
+9
-0
macdrv_cocoa.h
dlls/winemac.drv/macdrv_cocoa.h
+1
-0
winemac.drv.spec
dlls/winemac.drv/winemac.drv.spec
+1
-0
No files found.
dlls/winemac.drv/cocoa_app.m
View file @
3fcb69b7
...
...
@@ -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
();
});
}
dlls/winemac.drv/keyboard.c
View file @
3fcb69b7
...
...
@@ -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
...
...
dlls/winemac.drv/macdrv_cocoa.h
View file @
3fcb69b7
...
...
@@ -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 */
...
...
dlls/winemac.drv/winemac.drv.spec
View file @
3fcb69b7
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment