| 1 | /* |
| 2 | * Copyright © 1999 Keith Packard |
| 3 | * |
| 4 | * Permission to use, copy, modify, distribute, and sell this software and its |
| 5 | * documentation for any purpose is hereby granted without fee, provided that |
| 6 | * the above copyright notice appear in all copies and that both that |
| 7 | * copyright notice and this permission notice appear in supporting |
| 8 | * documentation, and that the name of Keith Packard not be used in |
| 9 | * advertising or publicity pertaining to distribution of the software without |
| 10 | * specific, written prior permission. Keith Packard makes no |
| 11 | * representations about the suitability of this software for any purpose. It |
| 12 | * is provided "as is" without express or implied warranty. |
| 13 | * |
| 14 | * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, |
| 15 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO |
| 16 | * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR |
| 17 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, |
| 18 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 19 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 20 | * PERFORMANCE OF THIS SOFTWARE. |
| 21 | */ |
| 22 | |
| 23 | #ifdef HAVE_CONFIG_H |
| 24 | #include <kdrive-config.h> |
| 25 | #endif |
| 26 | #include "fake.h" |
| 27 | #include <X11/keysym.h> |
| 28 | |
| 29 | #define FAKE_WIDTH 2 |
| 30 | |
| 31 | static Status |
| 32 | FakeKeyboardInit(KdKeyboardInfo * ki) |
| 33 | { |
| 34 | ki->minScanCode = 8; |
| 35 | ki->maxScanCode = 255; |
| 36 | return Success; |
| 37 | } |
| 38 | |
| 39 | static Status |
| 40 | FakeKeyboardEnable(KdKeyboardInfo * ki) |
| 41 | { |
| 42 | return Success; |
| 43 | } |
| 44 | |
| 45 | static void |
| 46 | FakeKeyboardDisable(KdKeyboardInfo * ki) |
| 47 | { |
| 48 | return; |
| 49 | } |
| 50 | |
| 51 | static void |
| 52 | FakeKeyboardFini(KdKeyboardInfo * ki) |
| 53 | { |
| 54 | } |
| 55 | |
| 56 | static void |
| 57 | FakeKeyboardLeds(KdKeyboardInfo * ki, int leds) |
| 58 | { |
| 59 | } |
| 60 | |
| 61 | static void |
| 62 | FakeKeyboardBell(KdKeyboardInfo * ki, int volume, int frequency, int duration) |
| 63 | { |
| 64 | } |
| 65 | |
| 66 | KdKeyboardDriver FakeKeyboardDriver = { |
| 67 | "fake", |
| 68 | FakeKeyboardInit, |
| 69 | FakeKeyboardEnable, |
| 70 | FakeKeyboardLeds, |
| 71 | FakeKeyboardBell, |
| 72 | FakeKeyboardDisable, |
| 73 | FakeKeyboardFini, |
| 74 | NULL, |
| 75 | }; |