1999-12-30 04:03:21 +01:00
|
|
|
|
/*
|
|
|
|
|
* Copyright <EFBFBD> 1999 Network Computing Devices, Inc. All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Author: Keith Packard
|
|
|
|
|
*/
|
|
|
|
|
|
2003-09-11 07:12:51 +02:00
|
|
|
|
#ifdef HAVE_CONFIG_H
|
2005-12-27 09:29:50 +01:00
|
|
|
|
#include <kdrive-config.h>
|
2003-09-11 07:12:51 +02:00
|
|
|
|
#endif
|
1999-12-30 04:03:21 +01:00
|
|
|
|
#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;
|
|
|
|
|
}
|
|
|
|
|
|
2006-10-23 01:54:59 +02:00
|
|
|
|
void
|
|
|
|
|
KdOsAddInputDrivers (void)
|
|
|
|
|
{
|
|
|
|
|
KdAddPointerDriver(&VxWorksMouseDriver);
|
|
|
|
|
KdAddPointerDriver(&VxWorksKeyboardDriver);
|
|
|
|
|
}
|
|
|
|
|
|
1999-12-30 04:03:21 +01:00
|
|
|
|
KdOsFuncs VxWorksFuncs = {
|
2006-10-29 02:48:02 +02:00
|
|
|
|
.SpecialKey = VxWorksSpecialKey,
|
1999-12-30 04:03:21 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
OsVendorInit (void)
|
|
|
|
|
{
|
|
|
|
|
KdOsInit (&VxWorksFuncs);
|
|
|
|
|
}
|