diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-11-01 23:10:26 +0200 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-11-01 23:10:26 +0200 |
commit | 81728558a044fdde0e1d63da7b6314755f77296e (patch) | |
tree | 94e8bb0559aee194216164ee10b09446ca1570a0 /hw/xnest | |
parent | 3df454719f9cbf6a046cb7458019ec621b3b42ee (diff) |
input: add non-keyboard bell ringing function
Add a generic 'ring the bell' function (console bell on Linux and BSD,
/dev/audio on Solaris), and add DDX functions for this. Make this the
core keyboard's bell.
Port Xvfb and Xnest to this.
Port XFree86 to this, with OS-specific hooks for Linux, BSD, and Solaris
taken from foo_io.c in the old layer.
Diffstat (limited to 'hw/xnest')
-rw-r--r-- | hw/xnest/Keyboard.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/xnest/Keyboard.c b/hw/xnest/Keyboard.c index 26a5ed3fb..0dacae70b 100644 --- a/hw/xnest/Keyboard.c +++ b/hw/xnest/Keyboard.c @@ -94,6 +94,12 @@ xnestBell(int volume, DeviceIntPtr pDev, pointer ctrl, int cls) } void +DDXRingBell(int volume, int pitch, int duration) +{ + XBell(xnestDisplay, volume); +} + +void xnestChangeKeyboardControl(DeviceIntPtr pDev, KeybdCtrl *ctrl) { #if 0 |