mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-14 11:44:16 +00:00
Compare commits
9 Commits
xf86-input
...
xf86-input
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7850a4042 | ||
|
|
bd4102af6e | ||
|
|
22e816eb32 | ||
|
|
b6b377fe9a | ||
|
|
3772676fd6 | ||
|
|
4f05afd495 | ||
|
|
c6964dd28a | ||
|
|
175af93bdb | ||
|
|
7c3c7f83d0 |
76
.gitignore
vendored
76
.gitignore
vendored
@@ -1,78 +1,28 @@
|
|||||||
#
|
*.patch
|
||||||
# X.Org module default exclusion patterns
|
|
||||||
# The next section if for module specific patterns
|
|
||||||
#
|
|
||||||
# Do not edit the following section
|
|
||||||
# GNU Build System (Autotools)
|
|
||||||
aclocal.m4
|
|
||||||
autom4te.cache/
|
|
||||||
autoscan.log
|
|
||||||
ChangeLog
|
ChangeLog
|
||||||
compile
|
Makefile
|
||||||
|
Makefile.in
|
||||||
|
aclocal.m4
|
||||||
|
autom4te.cache
|
||||||
config.guess
|
config.guess
|
||||||
config.h
|
config.h
|
||||||
config.h.in
|
config.h.in
|
||||||
config.log
|
config.log
|
||||||
config-ml.in
|
|
||||||
config.py
|
|
||||||
config.status
|
config.status
|
||||||
config.status.lineno
|
|
||||||
config.sub
|
config.sub
|
||||||
configure
|
configure
|
||||||
configure.scan
|
|
||||||
depcomp
|
depcomp
|
||||||
.deps/
|
|
||||||
INSTALL
|
|
||||||
install-sh
|
install-sh
|
||||||
.libs/
|
|
||||||
libtool
|
libtool
|
||||||
libtool.m4
|
|
||||||
ltmain.sh
|
ltmain.sh
|
||||||
lt~obsolete.m4
|
man/evdev.4
|
||||||
ltoptions.m4
|
|
||||||
ltsugar.m4
|
|
||||||
ltversion.m4
|
|
||||||
Makefile
|
|
||||||
Makefile.in
|
|
||||||
mdate-sh
|
|
||||||
missing
|
missing
|
||||||
mkinstalldirs
|
.deps
|
||||||
|
.libs
|
||||||
|
*.lo
|
||||||
|
*.la
|
||||||
|
stamp-h1
|
||||||
|
xf86-input-evdev-*.tar.*
|
||||||
*.pc
|
*.pc
|
||||||
py-compile
|
|
||||||
stamp-h?
|
|
||||||
symlink-tree
|
|
||||||
texinfo.tex
|
|
||||||
ylwrap
|
|
||||||
|
|
||||||
# Do not edit the following section
|
|
||||||
# Edit Compile Debug Document Distribute
|
|
||||||
*~
|
*~
|
||||||
*.[0-9]
|
tags
|
||||||
*.[0-9]x
|
|
||||||
*.bak
|
|
||||||
*.bin
|
|
||||||
core
|
|
||||||
*.dll
|
|
||||||
*.exe
|
|
||||||
*-ISO*.bdf
|
|
||||||
*-JIS*.bdf
|
|
||||||
*-KOI8*.bdf
|
|
||||||
*.kld
|
|
||||||
*.ko
|
|
||||||
*.ko.cmd
|
|
||||||
*.lai
|
|
||||||
*.l[oa]
|
|
||||||
*.[oa]
|
|
||||||
*.obj
|
|
||||||
*.patch
|
|
||||||
*.so
|
|
||||||
*.pcf.gz
|
|
||||||
*.pdb
|
|
||||||
*.tar.bz2
|
|
||||||
*.tar.gz
|
|
||||||
#
|
|
||||||
# Add & Override patterns for xf86-input-evdev
|
|
||||||
#
|
|
||||||
# Edit the following section as needed
|
|
||||||
# For example, !report.pc overrides *.pc. See 'man gitignore'
|
|
||||||
#
|
|
||||||
|
|||||||
72
COPYING
72
COPYING
@@ -1,11 +1,57 @@
|
|||||||
|
Various copyright notices found in this driver:
|
||||||
|
|
||||||
|
Copyright © 2004-2008 Red Hat, Inc.
|
||||||
|
|
||||||
|
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 Red Hat
|
||||||
|
not be used in advertising or publicity pertaining to distribution
|
||||||
|
of the software without specific, written prior permission. Red
|
||||||
|
Hat makes no representations about the suitability of this software
|
||||||
|
for any purpose. It is provided "as is" without express or implied
|
||||||
|
warranty.
|
||||||
|
|
||||||
|
THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||||
|
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
|
||||||
|
NO EVENT SHALL THE AUTHORS 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 2005 Sun Microsystems, Inc. All rights reserved.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
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 OPEN GROUP 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 holders 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 holders.
|
||||||
|
|
||||||
|
Copyright © 2008 University of South Australia
|
||||||
|
copyrights taken from xf86-input-mouse, partly valid for this driver.
|
||||||
Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany.
|
Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany.
|
||||||
Copyright 1993 by David Dawes <dawes@xfree86.org>
|
Copyright 1993 by David Dawes <dawes@xfree86.org>
|
||||||
Copyright 2002 by SuSE Linux AG, Author: Egbert Eich
|
Copyright 2002 by SuSE Linux AG, Author: Egbert Eich
|
||||||
Copyright 1994-2002 by The XFree86 Project, Inc.
|
Copyright 1994-2002 by The XFree86 Project, Inc.
|
||||||
Copyright 2002 by Paul Elliott
|
Copyright 2002 by Paul Elliott
|
||||||
Copyright © 2008 University of South Australia
|
|
||||||
Copyright 2008 by Chris Salch
|
|
||||||
Copyright © 2008 Red Hat, Inc.
|
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this software
|
Permission to use, copy, modify, distribute, and sell this software
|
||||||
and its documentation for any purpose is hereby granted without
|
and its documentation for any purpose is hereby granted without
|
||||||
@@ -26,26 +72,6 @@ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
|||||||
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||||
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
|
||||||
|
|
||||||
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,
|
|
||||||
and/or sell copies of the Software, and to permit persons to whom the
|
|
||||||
Software is furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice (including the next
|
|
||||||
paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
|
|
||||||
|
|
||||||
Copyright 2005 Adam Jackson.
|
Copyright 2005 Adam Jackson.
|
||||||
|
|
||||||
|
|||||||
12
Makefile.am
12
Makefile.am
@@ -18,23 +18,23 @@
|
|||||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
# 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.
|
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
# Provide an sdk location that is writable by the evdev module
|
# Ensure headers are installed below $(prefix) for distcheck
|
||||||
DISTCHECK_CONFIGURE_FLAGS = --with-sdkdir='$${includedir}/xorg'
|
DISTCHECK_CONFIGURE_FLAGS = --with-sdkdir='$${includedir}/xorg'
|
||||||
|
|
||||||
SUBDIRS = src man include
|
SUBDIRS = src man include
|
||||||
MAINTAINERCLEANFILES = ChangeLog INSTALL
|
|
||||||
|
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
pkgconfig_DATA = xorg-evdev.pc
|
pkgconfig_DATA = xorg-evdev.pc
|
||||||
|
|
||||||
|
EXTRA_DIST = ChangeLog
|
||||||
|
|
||||||
.PHONY: ChangeLog INSTALL
|
MAINTAINERCLEANFILES=ChangeLog
|
||||||
|
|
||||||
INSTALL:
|
.PHONY: ChangeLog
|
||||||
$(INSTALL_CMD)
|
|
||||||
|
|
||||||
ChangeLog:
|
ChangeLog:
|
||||||
$(CHANGELOG_CMD)
|
$(CHANGELOG_CMD)
|
||||||
|
|
||||||
dist-hook: ChangeLog INSTALL
|
dist-hook: ChangeLog
|
||||||
|
|||||||
59
configure.ac
59
configure.ac
@@ -20,34 +20,31 @@
|
|||||||
#
|
#
|
||||||
# Process this file with autoconf to produce a configure script
|
# Process this file with autoconf to produce a configure script
|
||||||
|
|
||||||
# Initialize Autoconf
|
AC_PREREQ(2.57)
|
||||||
AC_PREREQ([2.60])
|
|
||||||
AC_INIT([xf86-input-evdev],
|
AC_INIT([xf86-input-evdev],
|
||||||
[2.6.0],
|
2.3.2,
|
||||||
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
|
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
|
||||||
[xf86-input-evdev])
|
xf86-input-evdev)
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR([Makefile.am])
|
AC_CONFIG_SRCDIR([Makefile.am])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
|
||||||
AC_CONFIG_AUX_DIR(.)
|
AC_CONFIG_AUX_DIR(.)
|
||||||
|
AM_INIT_AUTOMAKE([dist-bzip2])
|
||||||
|
|
||||||
# Initialize Automake
|
|
||||||
AM_INIT_AUTOMAKE([foreign dist-bzip2])
|
|
||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
# Initialize libtool
|
# Require xorg-macros: XORG_DEFAULT_OPTIONS
|
||||||
|
m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.3 or later before running autoconf/autogen])])
|
||||||
|
XORG_MACROS_VERSION(1.3)
|
||||||
|
AM_CONFIG_HEADER([config.h])
|
||||||
|
|
||||||
|
# Checks for programs.
|
||||||
AC_DISABLE_STATIC
|
AC_DISABLE_STATIC
|
||||||
AC_PROG_LIBTOOL
|
AC_PROG_LIBTOOL
|
||||||
|
AC_PROG_CC
|
||||||
# Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
|
|
||||||
m4_ifndef([XORG_MACROS_VERSION],
|
|
||||||
[m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
|
|
||||||
XORG_MACROS_VERSION(1.8)
|
|
||||||
XORG_DEFAULT_OPTIONS
|
XORG_DEFAULT_OPTIONS
|
||||||
|
|
||||||
# Obtain compiler/linker options from server and required extensions
|
AH_TOP([#include "xorg-server.h"])
|
||||||
PKG_CHECK_MODULES(XORG, xorg-server xproto inputproto)
|
|
||||||
|
|
||||||
# Define a configure option for an alternate input module directory
|
|
||||||
AC_ARG_WITH(xorg-module-dir,
|
AC_ARG_WITH(xorg-module-dir,
|
||||||
AC_HELP_STRING([--with-xorg-module-dir=DIR],
|
AC_HELP_STRING([--with-xorg-module-dir=DIR],
|
||||||
[Default xorg module directory [[default=$libdir/xorg/modules]]]),
|
[Default xorg module directory [[default=$libdir/xorg/modules]]]),
|
||||||
@@ -56,21 +53,25 @@ AC_ARG_WITH(xorg-module-dir,
|
|||||||
inputdir=${moduledir}/input
|
inputdir=${moduledir}/input
|
||||||
AC_SUBST(inputdir)
|
AC_SUBST(inputdir)
|
||||||
|
|
||||||
# X Server SDK location is required to install evdev header files
|
# Checks for pkg-config packages. We need to be able to override sdkdir
|
||||||
# This location is also relayed in the xorg-evdev.pc file
|
# to satisfy silly distcheck requirements.
|
||||||
sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
|
PKG_CHECK_MODULES(XORG, xorg-server xproto $REQUIRED_MODULES)
|
||||||
|
XORG_CFLAGS="$CWARNFLAGS $XORG_CFLAGS"
|
||||||
# Workaround overriding sdkdir to be able to create a tarball when user has no
|
AC_ARG_WITH([sdkdir], [],
|
||||||
# write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am
|
[sdkdir="$withval"],
|
||||||
AC_ARG_WITH([sdkdir], [], [sdkdir="$withval"])
|
[sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`])
|
||||||
AC_SUBST([sdkdir])
|
AC_SUBST([sdkdir])
|
||||||
|
|
||||||
|
# Checks for libraries.
|
||||||
|
|
||||||
|
# Checks for header files.
|
||||||
|
AC_HEADER_STDC
|
||||||
|
|
||||||
DRIVER_NAME=evdev
|
DRIVER_NAME=evdev
|
||||||
AC_SUBST([DRIVER_NAME])
|
AC_SUBST([DRIVER_NAME])
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile
|
AC_OUTPUT([Makefile
|
||||||
src/Makefile
|
src/Makefile
|
||||||
man/Makefile
|
man/Makefile
|
||||||
include/Makefile
|
include/Makefile
|
||||||
xorg-evdev.pc])
|
xorg-evdev.pc])
|
||||||
AC_OUTPUT
|
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
|
EXTRA_DIST = evdev-properties.h
|
||||||
sdk_HEADERS = evdev-properties.h
|
sdk_HEADERS = evdev-properties.h
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
|
|
||||||
/* Reopen attempts. */
|
/* Reopen attempts. */
|
||||||
/* CARD8 */
|
/* CARD8 */
|
||||||
#define EVDEV_PROP_REOPEN "Evdev Reopen Attempts" /* OBSOLETE */
|
#define EVDEV_PROP_REOPEN "Evdev Reopen Attempts"
|
||||||
|
|
||||||
/* Run-time calibration */
|
/* Run-time calibration */
|
||||||
/* CARD32, 4 values [minx, maxx, miny, maxy], or no values for unset */
|
/* CARD32, 4 values [minx, maxx, miny, maxy], or no values for unset */
|
||||||
|
|||||||
@@ -1,37 +1,57 @@
|
|||||||
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
# Permission to use, copy, modify, distribute, and sell this software and its
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
# documentation for any purpose is hereby granted without fee, provided that
|
||||||
# to deal in the Software without restriction, including without limitation
|
# the above copyright notice appear in all copies and that both that
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
# copyright notice and this permission notice appear in supporting
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
# documentation.
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
#
|
||||||
#
|
# The above copyright notice and this permission notice shall be included
|
||||||
# The above copyright notice and this permission notice (including the next
|
# in all copies or substantial portions of the Software.
|
||||||
# paragraph) 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
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
# IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
# OTHER DEALINGS IN THE SOFTWARE.
|
||||||
# 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 holders 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 holders.
|
||||||
#
|
#
|
||||||
|
|
||||||
drivermandir = $(DRIVER_MAN_DIR)
|
drivermandir = $(DRIVER_MAN_DIR)
|
||||||
|
|
||||||
driverman_PRE = $(DRIVER_NAME).man
|
driverman_PRE = @DRIVER_NAME@.man
|
||||||
|
|
||||||
driverman_DATA = $(driverman_PRE:man=$(DRIVER_MAN_SUFFIX))
|
driverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@)
|
||||||
|
|
||||||
EXTRA_DIST = $(DRIVER_NAME).man
|
EXTRA_DIST = @DRIVER_NAME@.man
|
||||||
|
|
||||||
CLEANFILES = $(driverman_DATA)
|
CLEANFILES = $(driverman_DATA)
|
||||||
|
|
||||||
|
SED = sed
|
||||||
|
|
||||||
|
# Strings to replace in man pages
|
||||||
|
XORGRELSTRING = @PACKAGE_STRING@
|
||||||
|
XORGMANNAME = X Version 11
|
||||||
|
|
||||||
|
MAN_SUBSTS = \
|
||||||
|
-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
||||||
|
-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
|
||||||
|
-e 's|__xservername__|Xorg|g' \
|
||||||
|
-e 's|__xconfigfile__|xorg.conf|g' \
|
||||||
|
-e 's|__projectroot__|$(prefix)|g' \
|
||||||
|
-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
|
||||||
|
-e 's|__drivermansuffix__|$(DRIVER_MAN_SUFFIX)|g' \
|
||||||
|
-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
|
||||||
|
-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
|
||||||
|
-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
|
||||||
|
|
||||||
SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
|
SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
|
||||||
|
|
||||||
# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
|
|
||||||
.man.$(DRIVER_MAN_SUFFIX):
|
.man.$(DRIVER_MAN_SUFFIX):
|
||||||
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
sed $(MAN_SUBSTS) < $< > $@
|
||||||
|
|||||||
@@ -19,24 +19,15 @@ evdev \- Generic Linux input driver
|
|||||||
.B evdev
|
.B evdev
|
||||||
is an __xservername__ input driver for Linux\'s generic event devices. It
|
is an __xservername__ input driver for Linux\'s generic event devices. It
|
||||||
therefore supports all input devices that the kernel knows about, including
|
therefore supports all input devices that the kernel knows about, including
|
||||||
most mice, keyboards, tablets and touchscreens.
|
most mice and keyboards.
|
||||||
.B evdev
|
|
||||||
is the default driver on the major Linux distributions.
|
|
||||||
.PP
|
.PP
|
||||||
The
|
The
|
||||||
.B evdev
|
.B evdev
|
||||||
driver can serve as both a pointer and a keyboard input device. Multiple
|
driver can serve as both a pointer and a keyboard input device, and may be
|
||||||
input devices are supported by multiple instances of this driver, with one
|
used as both the core keyboard and the core pointer. Multiple input devices
|
||||||
InputDevice section of your __xconfigfile__ for each input device that will
|
are supported by multiple instances of this driver, with one Load
|
||||||
use this driver.
|
directive for evdev in the Module section of your __xconfigfile__ for each
|
||||||
.PP
|
input device that will use this driver.
|
||||||
It is recommended that
|
|
||||||
.B evdev
|
|
||||||
devices are configured through the
|
|
||||||
.B InputClass
|
|
||||||
directive (refer to __xconfigfile__(__filemansuffix__)) instead of manual
|
|
||||||
per-device configuration. Devices configured in the
|
|
||||||
__xconfigfile__(__filemansuffix__) are not hot-plug capable.
|
|
||||||
.PP
|
.PP
|
||||||
.SH SUPPORTED HARDWARE
|
.SH SUPPORTED HARDWARE
|
||||||
In general, any input device that the kernel has a driver for can be accessed
|
In general, any input device that the kernel has a driver for can be accessed
|
||||||
@@ -85,14 +76,13 @@ indicating that the next button pressed is to be
|
|||||||
.BI "Option \*qEmulate3Buttons\*q \*q" boolean \*q
|
.BI "Option \*qEmulate3Buttons\*q \*q" boolean \*q
|
||||||
Enable/disable the emulation of the third (middle) mouse button for mice
|
Enable/disable the emulation of the third (middle) mouse button for mice
|
||||||
which only have two physical buttons. The third button is emulated by
|
which only have two physical buttons. The third button is emulated by
|
||||||
pressing both buttons simultaneously. Default: off. Property: "Evdev Middle
|
pressing both buttons simultaneously. Default: on, until a middle mouse
|
||||||
Button Emulation".
|
button event is registered. Property: "Evdev Middle Button Emulation".
|
||||||
.TP 7
|
.TP 7
|
||||||
.BI "Option \*qEmulate3Timeout\*q \*q" integer \*q
|
.BI "Option \*qEmulate3Timeout\*q \*q" integer \*q
|
||||||
Sets the timeout (in milliseconds) that the driver waits before deciding
|
Sets the timeout (in milliseconds) that the driver waits before deciding
|
||||||
if two buttons where pressed "simultaneously" when 3 button emulation is
|
if two buttons where pressed "simultaneously" when 3 button emulation is
|
||||||
enabled. Default: 50. Property: "Evdev Middle Button Timeout".
|
enabled. Default: 50. Property: "Evdev Middle Button Timeout".
|
||||||
.TP 7
|
|
||||||
.BI "Option \*qEmulateWheel\*q \*q" boolean \*q
|
.BI "Option \*qEmulateWheel\*q \*q" boolean \*q
|
||||||
Enable/disable "wheel" emulation. Wheel emulation means emulating button
|
Enable/disable "wheel" emulation. Wheel emulation means emulating button
|
||||||
press/release events when the mouse is moved while a specific real button
|
press/release events when the mouse is moved while a specific real button
|
||||||
@@ -161,6 +151,10 @@ axes regardless of the presence of other axes. This may trigger buggy
|
|||||||
behavior and events from this axis are always forwarded. Users are
|
behavior and events from this axis are always forwarded. Users are
|
||||||
discouraged from setting this option.
|
discouraged from setting this option.
|
||||||
.TP 7
|
.TP 7
|
||||||
|
.BI "Option \*qReopenAttempts\*q \*q" integer \*q
|
||||||
|
Number of reopen attempts after a read error occurs on the device (e.g. after
|
||||||
|
waking up from suspend). In between each attempt is a 100ms wait. Default: 10.
|
||||||
|
.TP 7
|
||||||
.BI "Option \*qCalibration\*q \*q" "min-x max-x min-y max-y" \*q
|
.BI "Option \*qCalibration\*q \*q" "min-x max-x min-y max-y" \*q
|
||||||
Calibrates the X and Y axes for devices that need to scale to a different
|
Calibrates the X and Y axes for devices that need to scale to a different
|
||||||
coordinate system than reported to the X server. This feature is required
|
coordinate system than reported to the X server. This feature is required
|
||||||
@@ -169,11 +163,6 @@ originally reported by the kernel (e.g. touchscreens). The scaling to the
|
|||||||
custom coordinate system is done in-driver and the X server is unaware of
|
custom coordinate system is done in-driver and the X server is unaware of
|
||||||
the transformation. Property: "Evdev Axis Calibration".
|
the transformation. Property: "Evdev Axis Calibration".
|
||||||
.TP 7
|
.TP 7
|
||||||
.B Option \*qMode\*q \*qRelative\*q\fP|\fP\*qAbsolute\*q
|
|
||||||
Sets the mode of the device if device has absolute axes.
|
|
||||||
The default value for touchpads is relative, for other absolute.
|
|
||||||
This option has no effect on devices without absolute axes.
|
|
||||||
.TP 7
|
|
||||||
.BI "Option \*qSwapAxes\*q \*q" Bool \*q
|
.BI "Option \*qSwapAxes\*q \*q" Bool \*q
|
||||||
Swap x/y axes. Default: off. Property: "Evdev Axes Swap".
|
Swap x/y axes. Default: off. Property: "Evdev Axes Swap".
|
||||||
.TP 7
|
.TP 7
|
||||||
@@ -236,6 +225,7 @@ value.
|
|||||||
1 16-bit positive value.
|
1 16-bit positive value.
|
||||||
|
|
||||||
.SH AUTHORS
|
.SH AUTHORS
|
||||||
Kristian Høgsberg, Peter Hutterer
|
Kristian Høgsberg.
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
__xservername__(__appmansuffix__), __xconfigfile__(__filemansuffix__), Xserver(__appmansuffix__), X(__miscmansuffix__)
|
__xservername__(__appmansuffix__), __xconfigfile__(__filemansuffix__), Xserver(__appmansuffix__), X(__miscmansuffix__),
|
||||||
|
README.mouse.
|
||||||
|
|||||||
@@ -24,14 +24,14 @@
|
|||||||
# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
|
# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
|
||||||
# _ladir passes a dummy rpath to libtool so the thing will actually link
|
# _ladir passes a dummy rpath to libtool so the thing will actually link
|
||||||
# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
|
# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
|
||||||
|
AM_CFLAGS = $(XORG_CFLAGS)
|
||||||
AM_CFLAGS = $(XORG_CFLAGS) $(CWARNFLAGS)
|
|
||||||
AM_CPPFLAGS =-I$(top_srcdir)/include
|
|
||||||
|
|
||||||
@DRIVER_NAME@_drv_la_LTLIBRARIES = @DRIVER_NAME@_drv.la
|
@DRIVER_NAME@_drv_la_LTLIBRARIES = @DRIVER_NAME@_drv.la
|
||||||
@DRIVER_NAME@_drv_la_LDFLAGS = -module -avoid-version
|
@DRIVER_NAME@_drv_la_LDFLAGS = -module -avoid-version
|
||||||
@DRIVER_NAME@_drv_ladir = @inputdir@
|
@DRIVER_NAME@_drv_ladir = @inputdir@
|
||||||
|
|
||||||
|
INCLUDES=-I$(top_srcdir)/include/
|
||||||
|
|
||||||
@DRIVER_NAME@_drv_la_SOURCES = @DRIVER_NAME@.c \
|
@DRIVER_NAME@_drv_la_SOURCES = @DRIVER_NAME@.c \
|
||||||
@DRIVER_NAME@.h \
|
@DRIVER_NAME@.h \
|
||||||
emuMB.c \
|
emuMB.c \
|
||||||
|
|||||||
@@ -35,7 +35,6 @@
|
|||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
#include "evdev.h"
|
|
||||||
|
|
||||||
#include <xf86.h>
|
#include <xf86.h>
|
||||||
#include <xf86Xinput.h>
|
#include <xf86Xinput.h>
|
||||||
@@ -43,6 +42,7 @@
|
|||||||
#include <exevents.h>
|
#include <exevents.h>
|
||||||
|
|
||||||
#include <evdev-properties.h>
|
#include <evdev-properties.h>
|
||||||
|
#include "evdev.h"
|
||||||
|
|
||||||
#ifdef HAVE_PROPERTIES
|
#ifdef HAVE_PROPERTIES
|
||||||
static Atom prop_dlock = 0; /* Drag lock buttons. */
|
static Atom prop_dlock = 0; /* Drag lock buttons. */
|
||||||
@@ -145,8 +145,6 @@ EvdevDragLockPreInit(InputInfoPtr pInfo)
|
|||||||
if (next_num != NULL && *next_num == '\0')
|
if (next_num != NULL && *next_num == '\0')
|
||||||
next_num = NULL;
|
next_num = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
free(option_string);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Updates DragLock button state and fires button event messges */
|
/* Updates DragLock button state and fires button event messges */
|
||||||
|
|||||||
37
src/emuMB.c
37
src/emuMB.c
@@ -34,14 +34,19 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "evdev.h"
|
|
||||||
|
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
#include <xf86.h>
|
#include <xf86.h>
|
||||||
#include <xf86Xinput.h>
|
#include <xf86Xinput.h>
|
||||||
#include <exevents.h>
|
#include <exevents.h>
|
||||||
|
|
||||||
#include <evdev-properties.h>
|
#include <evdev-properties.h>
|
||||||
|
#include "evdev.h"
|
||||||
|
|
||||||
|
enum {
|
||||||
|
MBEMU_DISABLED = 0,
|
||||||
|
MBEMU_ENABLED,
|
||||||
|
MBEMU_AUTO
|
||||||
|
};
|
||||||
|
|
||||||
#ifdef HAVE_PROPERTIES
|
#ifdef HAVE_PROPERTIES
|
||||||
static Atom prop_mbemu = 0; /* Middle button emulation on/off property */
|
static Atom prop_mbemu = 0; /* Middle button emulation on/off property */
|
||||||
@@ -226,6 +231,11 @@ EvdevMBEmuFilterEvent(InputInfoPtr pInfo, int button, BOOL press)
|
|||||||
if (!pEvdev->emulateMB.enabled)
|
if (!pEvdev->emulateMB.enabled)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
if (button == 2) {
|
||||||
|
EvdevMBEmuEnable(pInfo, FALSE);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
/* don't care about other buttons */
|
/* don't care about other buttons */
|
||||||
if (button != 1 && button != 3)
|
if (button != 1 && button != 3)
|
||||||
return ret;
|
return ret;
|
||||||
@@ -299,10 +309,17 @@ void
|
|||||||
EvdevMBEmuPreInit(InputInfoPtr pInfo)
|
EvdevMBEmuPreInit(InputInfoPtr pInfo)
|
||||||
{
|
{
|
||||||
EvdevPtr pEvdev = (EvdevPtr)pInfo->private;
|
EvdevPtr pEvdev = (EvdevPtr)pInfo->private;
|
||||||
|
pEvdev->emulateMB.enabled = MBEMU_AUTO;
|
||||||
|
|
||||||
|
if (xf86FindOption(pInfo->options, "Emulate3Buttons"))
|
||||||
|
{
|
||||||
|
pEvdev->emulateMB.enabled = xf86SetBoolOption(pInfo->options,
|
||||||
|
"Emulate3Buttons",
|
||||||
|
MBEMU_ENABLED);
|
||||||
|
xf86Msg(X_INFO, "%s: Forcing middle mouse button emulation %s.\n",
|
||||||
|
pInfo->name, (pEvdev->emulateMB.enabled) ? "on" : "off");
|
||||||
|
}
|
||||||
|
|
||||||
pEvdev->emulateMB.enabled = xf86SetBoolOption(pInfo->options,
|
|
||||||
"Emulate3Buttons",
|
|
||||||
FALSE);
|
|
||||||
pEvdev->emulateMB.timeout = xf86SetIntOption(pInfo->options,
|
pEvdev->emulateMB.timeout = xf86SetIntOption(pInfo->options,
|
||||||
"Emulate3Timeout", 50);
|
"Emulate3Timeout", 50);
|
||||||
}
|
}
|
||||||
@@ -330,6 +347,16 @@ EvdevMBEmuFinalize(InputInfoPtr pInfo)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Enable/disable middle mouse button emulation. */
|
||||||
|
void
|
||||||
|
EvdevMBEmuEnable(InputInfoPtr pInfo, BOOL enable)
|
||||||
|
{
|
||||||
|
EvdevPtr pEvdev = (EvdevPtr)pInfo->private;
|
||||||
|
if (pEvdev->emulateMB.enabled == MBEMU_AUTO)
|
||||||
|
pEvdev->emulateMB.enabled = enable;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_PROPERTIES
|
#ifdef HAVE_PROPERTIES
|
||||||
static int
|
static int
|
||||||
EvdevMBEmuSetProperty(DeviceIntPtr dev, Atom atom, XIPropertyValuePtr val,
|
EvdevMBEmuSetProperty(DeviceIntPtr dev, Atom atom, XIPropertyValuePtr val,
|
||||||
|
|||||||
@@ -33,7 +33,6 @@
|
|||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
#include "evdev.h"
|
|
||||||
|
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
#include <xf86.h>
|
#include <xf86.h>
|
||||||
@@ -41,6 +40,7 @@
|
|||||||
#include <exevents.h>
|
#include <exevents.h>
|
||||||
|
|
||||||
#include <evdev-properties.h>
|
#include <evdev-properties.h>
|
||||||
|
#include "evdev.h"
|
||||||
|
|
||||||
#define WHEEL_NOT_CONFIGURED 0
|
#define WHEEL_NOT_CONFIGURED 0
|
||||||
|
|
||||||
@@ -100,7 +100,6 @@ EvdevWheelEmuFilterMotion(InputInfoPtr pInfo, struct input_event *pEv)
|
|||||||
EvdevPtr pEvdev = (EvdevPtr)pInfo->private;
|
EvdevPtr pEvdev = (EvdevPtr)pInfo->private;
|
||||||
WheelAxisPtr pAxis = NULL, pOtherAxis = NULL;
|
WheelAxisPtr pAxis = NULL, pOtherAxis = NULL;
|
||||||
int value = pEv->value;
|
int value = pEv->value;
|
||||||
int oldValue;
|
|
||||||
|
|
||||||
/* Has wheel emulation been configured to be enabled? */
|
/* Has wheel emulation been configured to be enabled? */
|
||||||
if (!pEvdev->emulateWheel.enabled)
|
if (!pEvdev->emulateWheel.enabled)
|
||||||
@@ -119,21 +118,12 @@ EvdevWheelEmuFilterMotion(InputInfoPtr pInfo, struct input_event *pEv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* We don't want to intercept real mouse wheel events */
|
/* We don't want to intercept real mouse wheel events */
|
||||||
if(pEv->type == EV_ABS) {
|
|
||||||
oldValue = pEvdev->vals[pEvdev->axis_map[pEv->code]];
|
|
||||||
pEvdev->vals[pEvdev->axis_map[pEv->code]] = value;
|
|
||||||
value -= oldValue; /* make value into a differential measurement */
|
|
||||||
}
|
|
||||||
|
|
||||||
switch(pEv->code) {
|
switch(pEv->code) {
|
||||||
|
|
||||||
/* ABS_X has the same value as REL_X, so this case catches both */
|
|
||||||
case REL_X:
|
case REL_X:
|
||||||
pAxis = &(pEvdev->emulateWheel.X);
|
pAxis = &(pEvdev->emulateWheel.X);
|
||||||
pOtherAxis = &(pEvdev->emulateWheel.Y);
|
pOtherAxis = &(pEvdev->emulateWheel.Y);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* ABS_Y has the same value as REL_Y, so this case catches both */
|
|
||||||
case REL_Y:
|
case REL_Y:
|
||||||
pAxis = &(pEvdev->emulateWheel.Y);
|
pAxis = &(pEvdev->emulateWheel.Y);
|
||||||
pOtherAxis = &(pEvdev->emulateWheel.X);
|
pOtherAxis = &(pEvdev->emulateWheel.X);
|
||||||
@@ -143,11 +133,11 @@ EvdevWheelEmuFilterMotion(InputInfoPtr pInfo, struct input_event *pEv)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we found REL_X, REL_Y, ABS_X or ABS_Y then emulate a mouse
|
/* If we found REL_X or REL_Y, emulate a mouse wheel.
|
||||||
wheel. Reset the inertia of the other axis when a scroll event
|
Reset the inertia of the other axis when a scroll event was sent
|
||||||
was sent to avoid the buildup of erroneous scroll events if the
|
to avoid the buildup of erroneous scroll events if the user
|
||||||
user doesn't move in a perfectly straight line.
|
doesn't move in a perfectly straight line.
|
||||||
*/
|
*/
|
||||||
if (pAxis)
|
if (pAxis)
|
||||||
{
|
{
|
||||||
if (EvdevWheelEmuInertia(pInfo, pAxis, value))
|
if (EvdevWheelEmuInertia(pInfo, pAxis, value))
|
||||||
@@ -232,13 +222,13 @@ EvdevWheelEmuHandleButtonMap(InputInfoPtr pInfo, WheelAxisPtr pAxis, char* axis_
|
|||||||
} else {
|
} else {
|
||||||
xf86Msg(X_WARNING, "%s: Invalid %s value:\"%s\"\n",
|
xf86Msg(X_WARNING, "%s: Invalid %s value:\"%s\"\n",
|
||||||
pInfo->name, axis_name, option_string);
|
pInfo->name, axis_name, option_string);
|
||||||
|
|
||||||
}
|
}
|
||||||
free(option_string);
|
|
||||||
|
|
||||||
/* Clean up and log what happened */
|
/* Clean up and log what happened */
|
||||||
if (msg) {
|
if (msg) {
|
||||||
xf86Msg(X_CONFIG, "%s: %s: %s\n",pInfo->name, axis_name, msg);
|
xf86Msg(X_CONFIG, "%s: %s: %s\n",pInfo->name, axis_name, msg);
|
||||||
free(msg);
|
xfree(msg);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
1144
src/evdev.c
1144
src/evdev.c
File diff suppressed because it is too large
Load Diff
30
src/evdev.h
30
src/evdev.h
@@ -34,12 +34,11 @@
|
|||||||
#include <linux/input.h>
|
#include <linux/input.h>
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|
||||||
#include <xorg-server.h>
|
|
||||||
#include <xf86Xinput.h>
|
#include <xf86Xinput.h>
|
||||||
#include <xf86_OSproc.h>
|
#include <xf86_OSproc.h>
|
||||||
#include <xkbstr.h>
|
#include <xkbstr.h>
|
||||||
|
|
||||||
#ifndef EV_CNT /* linux 2.6.23 kernels and earlier lack _CNT defines */
|
#ifndef EV_CNT /* linux 2.4 kernels and earlier lack _CNT defines */
|
||||||
#define EV_CNT (EV_MAX+1)
|
#define EV_CNT (EV_MAX+1)
|
||||||
#endif
|
#endif
|
||||||
#ifndef KEY_CNT
|
#ifndef KEY_CNT
|
||||||
@@ -58,20 +57,6 @@
|
|||||||
#define EVDEV_MAXBUTTONS 32
|
#define EVDEV_MAXBUTTONS 32
|
||||||
#define EVDEV_MAXQUEUE 32
|
#define EVDEV_MAXQUEUE 32
|
||||||
|
|
||||||
/* evdev flags */
|
|
||||||
#define EVDEV_KEYBOARD_EVENTS (1 << 0)
|
|
||||||
#define EVDEV_BUTTON_EVENTS (1 << 1)
|
|
||||||
#define EVDEV_RELATIVE_EVENTS (1 << 2)
|
|
||||||
#define EVDEV_ABSOLUTE_EVENTS (1 << 3)
|
|
||||||
#define EVDEV_TOUCHPAD (1 << 4)
|
|
||||||
#define EVDEV_INITIALIZED (1 << 5) /* WheelInit etc. called already? */
|
|
||||||
#define EVDEV_TOUCHSCREEN (1 << 6)
|
|
||||||
#define EVDEV_CALIBRATED (1 << 7) /* run-time calibrated? */
|
|
||||||
#define EVDEV_TABLET (1 << 8) /* device looks like a tablet? */
|
|
||||||
#define EVDEV_UNIGNORE_ABSOLUTE (1 << 9) /* explicitly unignore abs axes */
|
|
||||||
#define EVDEV_UNIGNORE_RELATIVE (1 << 10) /* explicitly unignore rel axes */
|
|
||||||
#define EVDEV_RELATIVE_MODE (1 << 11) /* Force relative events for devices with absolute axes */
|
|
||||||
|
|
||||||
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3
|
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3
|
||||||
#define HAVE_PROPERTIES 1
|
#define HAVE_PROPERTIES 1
|
||||||
#endif
|
#endif
|
||||||
@@ -109,7 +94,6 @@ typedef struct {
|
|||||||
enum {
|
enum {
|
||||||
EV_QUEUE_KEY, /* xf86PostKeyboardEvent() */
|
EV_QUEUE_KEY, /* xf86PostKeyboardEvent() */
|
||||||
EV_QUEUE_BTN, /* xf86PostButtonEvent() */
|
EV_QUEUE_BTN, /* xf86PostButtonEvent() */
|
||||||
EV_QUEUE_PROXIMITY, /* xf86PostProximityEvent() */
|
|
||||||
} type;
|
} type;
|
||||||
int key; /* May be either a key code or button number. */
|
int key; /* May be either a key code or button number. */
|
||||||
int val; /* State of the key/button; pressed or released. */
|
int val; /* State of the key/button; pressed or released. */
|
||||||
@@ -125,16 +109,14 @@ typedef struct {
|
|||||||
int old_vals[MAX_VALUATORS]; /* Translate absolute inputs to relative */
|
int old_vals[MAX_VALUATORS]; /* Translate absolute inputs to relative */
|
||||||
|
|
||||||
int flags;
|
int flags;
|
||||||
int in_proximity; /* device in proximity */
|
int tool;
|
||||||
int use_proximity; /* using the proximity bit? */
|
|
||||||
int num_buttons; /* number of buttons */
|
int num_buttons; /* number of buttons */
|
||||||
BOOL swap_axes;
|
BOOL swap_axes;
|
||||||
BOOL invert_x;
|
BOOL invert_x;
|
||||||
BOOL invert_y;
|
BOOL invert_y;
|
||||||
|
|
||||||
int delta[REL_CNT];
|
int delta[REL_CNT];
|
||||||
unsigned int abs_queued, rel_queued, prox_queued;
|
unsigned int abs, rel;
|
||||||
unsigned int abs_prox; /* valuators posted while out of prox? */
|
|
||||||
|
|
||||||
/* XKB stuff has to be per-device rather than per-driver */
|
/* XKB stuff has to be per-device rather than per-driver */
|
||||||
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 5
|
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 5
|
||||||
@@ -201,12 +183,11 @@ typedef struct {
|
|||||||
/* Event posting functions */
|
/* Event posting functions */
|
||||||
void EvdevQueueKbdEvent(InputInfoPtr pInfo, struct input_event *ev, int value);
|
void EvdevQueueKbdEvent(InputInfoPtr pInfo, struct input_event *ev, int value);
|
||||||
void EvdevQueueButtonEvent(InputInfoPtr pInfo, int button, int value);
|
void EvdevQueueButtonEvent(InputInfoPtr pInfo, int button, int value);
|
||||||
void EvdevQueueProximityEvent(InputInfoPtr pInfo, int value);
|
|
||||||
void EvdevPostButtonEvent(InputInfoPtr pInfo, int button, int value);
|
void EvdevPostButtonEvent(InputInfoPtr pInfo, int button, int value);
|
||||||
void EvdevQueueButtonClicks(InputInfoPtr pInfo, int button, int count);
|
void EvdevQueueButtonClicks(InputInfoPtr pInfo, int button, int count);
|
||||||
void EvdevPostRelativeMotionEvents(InputInfoPtr pInfo, int num_v, int first_v,
|
void EvdevPostRelativeMotionEvents(InputInfoPtr pInfo, int *num_v, int *first_v,
|
||||||
int v[MAX_VALUATORS]);
|
int v[MAX_VALUATORS]);
|
||||||
void EvdevPostAbsoluteMotionEvents(InputInfoPtr pInfo, int num_v, int first_v,
|
void EvdevPostAbsoluteMotionEvents(InputInfoPtr pInfo, int *num_v, int *first_v,
|
||||||
int v[MAX_VALUATORS]);
|
int v[MAX_VALUATORS]);
|
||||||
unsigned int EvdevUtilButtonEventToButtonNumber(EvdevPtr pEvdev, int code);
|
unsigned int EvdevUtilButtonEventToButtonNumber(EvdevPtr pEvdev, int code);
|
||||||
|
|
||||||
@@ -218,6 +199,7 @@ void EvdevMBEmuBlockHandler(pointer, struct timeval**, pointer);
|
|||||||
void EvdevMBEmuPreInit(InputInfoPtr);
|
void EvdevMBEmuPreInit(InputInfoPtr);
|
||||||
void EvdevMBEmuOn(InputInfoPtr);
|
void EvdevMBEmuOn(InputInfoPtr);
|
||||||
void EvdevMBEmuFinalize(InputInfoPtr);
|
void EvdevMBEmuFinalize(InputInfoPtr);
|
||||||
|
void EvdevMBEmuEnable(InputInfoPtr, BOOL);
|
||||||
|
|
||||||
/* Mouse Wheel emulation */
|
/* Mouse Wheel emulation */
|
||||||
void EvdevWheelEmuPreInit(InputInfoPtr pInfo);
|
void EvdevWheelEmuPreInit(InputInfoPtr pInfo);
|
||||||
|
|||||||
Reference in New Issue
Block a user