3
* Copyright 2002 Red Hat Inc., Durham, North Carolina.
7
* Permission is hereby granted, free of charge, to any person obtaining
8
* a copy of this software and associated documentation files (the
9
* "Software"), to deal in the Software without restriction, including
10
* without limitation on the rights to use, copy, modify, merge,
11
* publish, distribute, sublicense, and/or sell copies of the Software,
12
* and to permit persons to whom the Software is furnished to do so,
13
* subject to the following conditions:
15
* The above copyright notice and this permission notice (including the
16
* next paragraph) shall be included in all copies or substantial
17
* portions of the Software.
19
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22
* NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
23
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
24
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
25
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
* Rickard E. (Rik) Faith <faith@redhat.com>
36
* Provide mouse and keyboard that are sufficient for starting the X
37
* server, but that don't actually provide any events. This is useful
40
#ifdef HAVE_DMX_CONFIG_H
41
#include <dmx-config.h>
45
#include "dmxinputinit.h"
48
/** Return information about the dummy keyboard device specified in \a pDev
49
* into the structure pointed to by \a info. The keyboard is set up to
50
* have 1 valid key code that is \a NoSymbol */
51
void dmxDummyKbdGetInfo(DevicePtr pDev, DMXLocalInitInfoPtr info)
53
static KeySym keyboard_mapping = NoSymbol;
57
info->keySyms.minKeyCode = 8;
58
info->keySyms.maxKeyCode = 8;
59
info->keySyms.mapWidth = 1;
60
info->keySyms.map = &keyboard_mapping;
63
info->kbdFeedbackClass = 1;
69
/** Return information about the dummy mouse device specified in \a pDev
70
* into the structure pointed to by \a info. They mouse has 3 buttons
72
void dmxDummyMouGetInfo(DevicePtr pDev, DMXLocalInitInfoPtr info)
74
info->buttonClass = 1;
79
info->valuatorClass = 1;
86
info->ptrFeedbackClass = 1;