040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/*
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * Copyright 1995-1999 by Frederic Lepied, France. <Lepied@XFree86.org>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync *
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * Permission to use, copy, modify, distribute, and sell this software and its
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * documentation for any purpose is hereby granted without fee, provided that
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * the above copyright notice appear in all copies and that both that
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * copyright notice and this permission notice appear in supporting
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * documentation, and that the name of Frederic Lepied not be used in
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * advertising or publicity pertaining to distribution of the software without
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * specific, written prior permission. Frederic Lepied makes no
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * representations about the suitability of this software for any purpose. It
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * is provided "as is" without express or implied warranty.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync *
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * FREDERIC LEPIED DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * EVENT SHALL FREDERIC LEPIED BE LIABLE FOR ANY SPECIAL, INDIRECT OR
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * PERFORMANCE OF THIS SOFTWARE.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync *
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/*
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * Copyright (c) 2000-2002 by The XFree86 Project, Inc.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync *
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * Permission is hereby granted, free of charge, to any person obtaining a
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * copy of this software and associated documentation files (the "Software"),
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * to deal in the Software without restriction, including without limitation
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * and/or sell copies of the Software, and to permit persons to whom the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * Software is furnished to do so, subject to the following conditions:
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync *
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * The above copyright notice and this permission notice shall be included in
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * all copies or substantial portions of the Software.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync *
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * OTHER DEALINGS IN THE SOFTWARE.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync *
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * Except as contained in this notice, the name of the copyright holder(s)
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * and author(s) shall not be used in advertising or otherwise to promote
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * the sale, use or other dealings in this Software without prior written
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * authorization from the copyright holder(s) and author(s).
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#ifndef _xf86Xinput_h
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define _xf86Xinput_h
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#ifndef NEED_EVENTS
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define NEED_EVENTS
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#endif
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#include "xf86str.h"
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#include "inputstr.h"
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#ifdef XINPUT
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#include <X11/extensions/XI.h>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#include <X11/extensions/XIproto.h>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#include "XIstubs.h"
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#endif
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/* Input device flags */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define XI86_OPEN_ON_INIT 0x01 /* open the device at startup time */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define XI86_CONFIGURED 0x02 /* the device has been configured */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define XI86_ALWAYS_CORE 0x04 /* device always controls the pointer */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/* the device sends Xinput and core pointer events */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define XI86_SEND_CORE_EVENTS XI86_ALWAYS_CORE
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/* if the device is the core pointer or is sending core events, and
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * SEND_DRAG_EVENTS is false, and a buttons is done, then no motion events
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * (mouse drag action) are sent. This is mainly to allow a touch screen to be
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * used with netscape and other browsers which do strange things if the mouse
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * moves between button down and button up. With a touch screen, this motion
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * is common due to the user's finger moving slightly.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define XI86_SEND_DRAG_EVENTS 0x08
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define XI86_CORE_POINTER 0x10 /* device is the core pointer */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define XI86_CORE_KEYBOARD 0x20 /* device is the core keyboard */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define XI86_POINTER_CAPABLE 0x40 /* capable of being a core pointer */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define XI86_KEYBOARD_CAPABLE 0x80 /* capable of being a core keyboard */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define XI_PRIVATE(dev) \
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync (((LocalDevicePtr)((dev)->public.devicePrivate))->private)
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/* Stupid API backwards-compatibility. */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define TS_Raw 60
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define TS_Scaled 61
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#ifdef XINPUT
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/* This holds the input driver entry and module information. */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsynctypedef struct _InputDriverRec {
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int driverVersion;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync char * driverName;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync void (*Identify)(int flags);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync struct _LocalDeviceRec *(*PreInit)(struct _InputDriverRec *drv,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync IDevPtr dev, int flags);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync void (*UnInit)(struct _InputDriverRec *drv,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync struct _LocalDeviceRec *pInfo,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int flags);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync pointer module;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int refCount;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync} InputDriverRec, *InputDriverPtr;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#endif
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/* This is to input devices what the ScrnInfoRec is to screens. */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsynctypedef struct _LocalDeviceRec {
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync struct _LocalDeviceRec *next;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync char * name;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int flags;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync Bool (*device_control)(DeviceIntPtr device, int what);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync void (*read_input)(struct _LocalDeviceRec *local);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int (*control_proc)(struct _LocalDeviceRec *local,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync xDeviceCtl *control);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync void (*close_proc)(struct _LocalDeviceRec *local);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int (*switch_mode)(ClientPtr client, DeviceIntPtr dev,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int mode);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync Bool (*conversion_proc)(struct _LocalDeviceRec *local,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int first, int num, int v0,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int v1, int v2, int v3, int v4,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int v5, int *x, int *y);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync Bool (*reverse_conversion_proc)(
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync struct _LocalDeviceRec *local,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int x, int y, int *valuators);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int (*set_device_valuators)
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync (struct _LocalDeviceRec *local,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int *valuators, int first_valuator,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int num_valuators);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int fd;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync Atom atom;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync DeviceIntPtr dev;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync pointer private;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int private_flags;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync unsigned int first;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync unsigned int last;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int old_x;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int old_y;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync char * type_name;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync IntegerFeedbackPtr always_core_feedback;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync IDevPtr conf_idev;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync InputDriverPtr drv;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync pointer module;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync pointer options;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync unsigned int history_size;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync} LocalDeviceRec, *LocalDevicePtr, InputInfoRec, *InputInfoPtr;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsynctypedef struct _DeviceAssocRec
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync{
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync char * config_section_name;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync LocalDevicePtr (*device_allocate)(void);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync} DeviceAssocRec, *DeviceAssocPtr;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/* xf86Globals.c */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern InputInfoPtr xf86InputDevs;
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/* xf86Xinput.c */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid InitExtInput(void);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86PostMotionEvent(DeviceIntPtr device, int is_absolute,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int first_valuator, int num_valuators, ...);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86PostMotionEventP(DeviceIntPtr device, int is_absolute,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int first_valuator, int num_valuators, int *valuators);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86PostProximityEvent(DeviceIntPtr device, int is_in,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int first_valuator, int num_valuators, ...);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86PostButtonEvent(DeviceIntPtr device, int is_absolute, int button,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int is_down, int first_valuator, int num_valuators,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync ...);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86PostKeyEvent(DeviceIntPtr device, unsigned int key_code, int is_down,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int is_absolute, int first_valuator, int num_valuators,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync ...);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86PostKeyboardEvent(DeviceIntPtr device, unsigned int key_code,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int is_down);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86XinputFinalizeInit(DeviceIntPtr dev);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86ActivateDevice(LocalDevicePtr local);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncBool xf86CheckButton(int button, int down);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86SwitchCoreDevice(LocalDevicePtr device, DeviceIntPtr core);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncLocalDevicePtr xf86FirstLocalDevice(void);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncint xf86ScaleAxis(int Cx, int Sxhigh, int Sxlow, int Rxhigh, int Rxlow);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86XInputSetScreen(LocalDevicePtr local, int screen_number, int x, int y);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86ProcessCommonOptions(InputInfoPtr pInfo, pointer options);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86InitValuatorAxisStruct(DeviceIntPtr dev, int axnum, int minval,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int maxval, int resolution, int min_res,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync int max_res);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86InitValuatorDefaults(DeviceIntPtr dev, int axnum);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86AddEnabledDevice(InputInfoPtr pInfo);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86RemoveEnabledDevice(InputInfoPtr pInfo);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86DisableDevice(DeviceIntPtr dev, Bool panic);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86EnableDevice(DeviceIntPtr dev);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/* xf86Helper.c */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86AddInputDriver(InputDriverPtr driver, pointer module, int flags);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86DeleteInputDriver(int drvIndex);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncInputInfoPtr xf86AllocateInput(InputDriverPtr drv, int flags);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncInputDriverPtr xf86LookupInputDriver(const char *name);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncInputInfoPtr xf86LookupInput(const char *name);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86DeleteInput(InputInfoPtr pInp, int flags);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86MotionHistoryAllocate(LocalDevicePtr local);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncint xf86GetMotionEvents(DeviceIntPtr dev, xTimecoord *buff,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync unsigned long start, unsigned long stop,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync ScreenPtr pScreen);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/* xf86Option.c */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncvoid xf86CollectInputOptions(InputInfoPtr pInfo, const char **defaultOpts,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync pointer extraOpts);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/* Legacy hatred */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define SendCoreEvents 59
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#define DontSendCoreEvents 60
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#endif /* _xf86Xinput_h */