/*
* Copyright 1995-1999 by Frederic Lepied, France. <Lepied@XFree86.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of Frederic Lepied not be used in
* advertising or publicity pertaining to distribution of the software without
* specific, written prior permission. Frederic Lepied makes no
* representations about the suitability of this software for any purpose. It
* is provided "as is" without express or implied warranty.
*
* FREDERIC LEPIED DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
* EVENT SHALL FREDERIC LEPIED BE LIABLE FOR ANY SPECIAL, INDIRECT OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*
*/
/*
* Copyright (c) 2000-2002 by The XFree86 Project, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*
* Except as contained in this notice, the name of the copyright holder(s)
* and author(s) shall not be used in advertising or otherwise to promote
* the sale, use or other dealings in this Software without prior written
* authorization from the copyright holder(s) and author(s).
*/
#ifndef _xf86Xinput_h
#define _xf86Xinput_h
#include "xf86str.h"
#include "inputstr.h"
#include "XIstubs.h"
/* Input device flags */
/* the device sends Xinput and core pointer events */
/* 0x08 is reserved for legacy XI86_SEND_DRAG_EVENTS, do not use for now */
/* server-internal only */
/* This holds the input driver entry and module information. */
typedef struct _InputDriverRec {
int driverVersion;
const char *driverName;
const char **default_options;
/* This is to input devices what the ScrnInfoRec is to screens. */
typedef struct _InputInfoRec {
char *name;
char *driver;
int flags;
int (*set_device_valuators)
(struct _InputInfoRec * local,
int fd;
const char *type_name;
} *InputInfoPtr;
/* xf86Globals.c */
extern InputInfoPtr xf86InputDevs;
/* xf86Xinput.c */
int first_valuator, int num_valuators,
...);
int first_valuator,
int num_valuators,
const int *valuators);
const ValuatorMask *mask);
int first_valuator,
int num_valuators, ...);
int first_valuator,
int num_valuators,
const int *valuators);
const ValuatorMask *mask);
int first_valuator, int num_valuators,
...);
int first_valuator,
int num_valuators,
const int *valuators);
const ValuatorMask *mask);
int is_absolute, int first_valuator,
int num_valuators, ...);
int is_absolute,
const ValuatorMask *mask);
int is_absolute, int first_valuator,
int num_valuators,
const int *valuators);
const ValuatorMask *mask);
int from_min);
int maxval, int resolution,
int mode);
/* not exported */
InputInfoPtr xf86AllocateInput(void);
/* xf86Helper.c */
int flags);
extern _X_EXPORT void
extern _X_EXPORT void
extern _X_EXPORT void
_X_ATTRIBUTE_PRINTF(4, 0);
/* xf86Option.c */
extern _X_EXPORT void
#endif /* _xf86Xinput_h */