summaryrefslogtreecommitdiff
path: root/hw/kdrive/vxworks/vxworks.c
blob: c9e2be7cc001e261cb8f39ec9741b520e7505ebd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * 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);
}