xserver-multidpi/hw/kdrive/vxworks/vxworks.c
Daniel Stone 738d2e8817 kdrive: move bell ringing into an OS function
Move the bell into an OS function, and use that if it's declared; else,
fall back to using the driver's function.
Remove the Linux keyboard bell function; just move it into the OS layer.
Use named initialisers when converting the old structures, and eliminate
unused functions.
2006-10-29 03:48:02 +03:00

45 lines
735 B
C

/*
* Id: vxworks.c,v 1.1 1999/11/24 08:35:24 keithp Exp $
*
* Copyright © 1999 Network Computing Devices, Inc. All rights reserved.
*
* Author: Keith Packard
*/
#ifdef HAVE_CONFIG_H
#include <kdrive-config.h>
#endif
#include "kdrive.h"
#include <X11/keysym.h>
Bool
VxWorksSpecialKey (KeySym sym)
{
switch (sym) {
case XK_Sys_Req:
download(1, "setup", 0);
return TRUE;
case XK_Break:
download(1, "launcher", 0);
return TRUE;
}
return FALSE;
}
void
KdOsAddInputDrivers (void)
{
KdAddPointerDriver(&VxWorksMouseDriver);
KdAddPointerDriver(&VxWorksKeyboardDriver);
}
KdOsFuncs VxWorksFuncs = {
.SpecialKey = VxWorksSpecialKey,
};
void
OsVendorInit (void)
{
KdOsInit (&VxWorksFuncs);
}