mouse.c revision 706f2543
1/* 2 * Copyright © 2004 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 <errno.h> 27#include <termios.h> 28#include <X11/X.h> 29#include <X11/Xproto.h> 30#include <X11/Xpoll.h> 31#include "inputstr.h" 32#include "scrnintstr.h" 33#include "kdrive.h" 34 35static Status 36MouseInit (KdPointerInfo *pi) 37{ 38 return Success; 39} 40 41static Status 42MouseEnable (KdPointerInfo *pi) 43{ 44 return Success; 45} 46 47static void 48MouseDisable (KdPointerInfo *pi) 49{ 50 return; 51} 52 53static void 54MouseFini (KdPointerInfo *pi) 55{ 56 return; 57} 58 59 60KdPointerDriver FakePointerDriver = { 61 "fake", 62 MouseInit, 63 MouseEnable, 64 MouseDisable, 65 MouseFini, 66}; 67