mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-14 11:44:16 +00:00
Compare commits
68 Commits
xf86-input
...
xf86-input
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
990540fa19 | ||
|
|
b8945e61eb | ||
|
|
97dc45b769 | ||
|
|
ec6cb31cc4 | ||
|
|
ed47c7f33e | ||
|
|
899218e181 | ||
|
|
421585fda6 | ||
|
|
8697811f56 | ||
|
|
b06bffdc97 | ||
|
|
9410e452d2 | ||
|
|
516e538da4 | ||
|
|
1f38e1bc11 | ||
|
|
456579ba30 | ||
|
|
21a2ac818e | ||
|
|
4c21624240 | ||
|
|
6e244b1098 | ||
|
|
e7c301563a | ||
|
|
ffc2c9961f | ||
|
|
7c01cff1fa | ||
|
|
e6e20c1b3e | ||
|
|
b27d03b248 | ||
|
|
ba78428ed5 | ||
|
|
041a1f246a | ||
|
|
44b80d177f | ||
|
|
7bbbce9a83 | ||
|
|
35b6085bf8 | ||
|
|
539d67505c | ||
|
|
a77dea1caa | ||
|
|
5fb1e841eb | ||
|
|
a4f2d12cd8 | ||
|
|
6b5c0401e2 | ||
|
|
993e011b91 | ||
|
|
2d5e922a6d | ||
|
|
41a38ec886 | ||
|
|
b31c00efea | ||
|
|
b48dcfa3f2 | ||
|
|
44baa36b99 | ||
|
|
7fa5982d47 | ||
|
|
fe8d0fa11a | ||
|
|
09b918db86 | ||
|
|
9dbace89be | ||
|
|
aaf65e7bfa | ||
|
|
8eede7ea8d | ||
|
|
1936632cb0 | ||
|
|
0dc931e1ac | ||
|
|
d525b48a2f | ||
|
|
801778c310 | ||
|
|
99505011d1 | ||
|
|
fd036680c2 | ||
|
|
e81cd935cf | ||
|
|
0b5844ce67 | ||
|
|
d6beb16be2 | ||
|
|
2f5a0fb698 | ||
|
|
1b0df04abe | ||
|
|
2ca24a16f0 | ||
|
|
7b285a802b | ||
|
|
f187badb71 | ||
|
|
0e9d75ba68 | ||
|
|
3a6d27b83d | ||
|
|
886e303af1 | ||
|
|
3d23ef4888 | ||
|
|
c0473e4921 | ||
|
|
afc9e91765 | ||
|
|
c1f16a4f59 | ||
|
|
a0f7f34dc5 | ||
|
|
11669d8279 | ||
|
|
9cbffda910 | ||
|
|
59056e656c |
76
.gitignore
vendored
76
.gitignore
vendored
@@ -1,28 +1,78 @@
|
|||||||
*.patch
|
#
|
||||||
ChangeLog
|
# X.Org module default exclusion patterns
|
||||||
Makefile
|
# The next section if for module specific patterns
|
||||||
Makefile.in
|
#
|
||||||
|
# Do not edit the following section
|
||||||
|
# GNU Build System (Autotools)
|
||||||
aclocal.m4
|
aclocal.m4
|
||||||
autom4te.cache
|
autom4te.cache/
|
||||||
|
autoscan.log
|
||||||
|
ChangeLog
|
||||||
|
compile
|
||||||
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
|
||||||
man/evdev.4
|
lt~obsolete.m4
|
||||||
|
ltoptions.m4
|
||||||
|
ltsugar.m4
|
||||||
|
ltversion.m4
|
||||||
|
Makefile
|
||||||
|
Makefile.in
|
||||||
|
mdate-sh
|
||||||
missing
|
missing
|
||||||
.deps
|
mkinstalldirs
|
||||||
.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
|
||||||
*~
|
*~
|
||||||
tags
|
*.[0-9]
|
||||||
|
*.[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,57 +1,11 @@
|
|||||||
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
|
||||||
@@ -72,6 +26,26 @@ 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
|
|
||||||
|
|
||||||
# Ensure headers are installed below $(prefix) for distcheck
|
# Provide an sdk location that is writable by the evdev module
|
||||||
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
|
|
||||||
|
|
||||||
MAINTAINERCLEANFILES=ChangeLog
|
.PHONY: ChangeLog INSTALL
|
||||||
|
|
||||||
.PHONY: ChangeLog
|
INSTALL:
|
||||||
|
$(INSTALL_CMD)
|
||||||
|
|
||||||
ChangeLog:
|
ChangeLog:
|
||||||
$(CHANGELOG_CMD)
|
$(CHANGELOG_CMD)
|
||||||
|
|
||||||
dist-hook: ChangeLog
|
dist-hook: ChangeLog INSTALL
|
||||||
|
|||||||
59
configure.ac
59
configure.ac
@@ -20,31 +20,34 @@
|
|||||||
#
|
#
|
||||||
# Process this file with autoconf to produce a configure script
|
# Process this file with autoconf to produce a configure script
|
||||||
|
|
||||||
AC_PREREQ(2.57)
|
# Initialize Autoconf
|
||||||
|
AC_PREREQ([2.60])
|
||||||
AC_INIT([xf86-input-evdev],
|
AC_INIT([xf86-input-evdev],
|
||||||
2.3.0,
|
[2.5.0],
|
||||||
[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
|
||||||
|
|
||||||
# Require xorg-macros: XORG_DEFAULT_OPTIONS
|
# Initialize libtool
|
||||||
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
|
||||||
|
|
||||||
AH_TOP([#include "xorg-server.h"])
|
# Obtain compiler/linker options from server and required extensions
|
||||||
|
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]]]),
|
||||||
@@ -53,25 +56,21 @@ AC_ARG_WITH(xorg-module-dir,
|
|||||||
inputdir=${moduledir}/input
|
inputdir=${moduledir}/input
|
||||||
AC_SUBST(inputdir)
|
AC_SUBST(inputdir)
|
||||||
|
|
||||||
# Checks for pkg-config packages. We need to be able to override sdkdir
|
# X Server SDK location is required to install evdev header files
|
||||||
# to satisfy silly distcheck requirements.
|
# This location is also relayed in the xorg-evdev.pc file
|
||||||
PKG_CHECK_MODULES(XORG, xorg-server xproto $REQUIRED_MODULES)
|
sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
|
||||||
XORG_CFLAGS="$CWARNFLAGS $XORG_CFLAGS"
|
|
||||||
AC_ARG_WITH([sdkdir], [],
|
# Workaround overriding sdkdir to be able to create a tarball when user has no
|
||||||
[sdkdir="$withval"],
|
# write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am
|
||||||
[sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`])
|
AC_ARG_WITH([sdkdir], [], [sdkdir="$withval"])
|
||||||
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_OUTPUT([Makefile
|
AC_CONFIG_FILES([Makefile
|
||||||
src/Makefile
|
src/Makefile
|
||||||
man/Makefile
|
man/Makefile
|
||||||
include/Makefile
|
include/Makefile
|
||||||
xorg-evdev.pc])
|
xorg-evdev.pc])
|
||||||
|
AC_OUTPUT
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
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"
|
#define EVDEV_PROP_REOPEN "Evdev Reopen Attempts" /* OBSOLETE */
|
||||||
|
|
||||||
/* 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,57 +1,37 @@
|
|||||||
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
||||||
#
|
#
|
||||||
# Permission to use, copy, modify, distribute, and sell this software and its
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
# documentation for any purpose is hereby granted without fee, provided that
|
# copy of this software and associated documentation files (the "Software"),
|
||||||
# the above copyright notice appear in all copies and that both that
|
# to deal in the Software without restriction, including without limitation
|
||||||
# copyright notice and this permission notice appear in supporting
|
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
# documentation.
|
# 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 shall be included
|
#
|
||||||
# in all copies or substantial portions of the Software.
|
# The above copyright notice and this permission notice (including the next
|
||||||
#
|
# paragraph) shall be included in all copies or substantial portions of the
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
# Software.
|
||||||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
#
|
||||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
# IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
# OTHER DEALINGS IN THE SOFTWARE.
|
# 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
|
||||||
# Except as contained in this notice, the name of the copyright holders shall
|
# DEALINGS IN THE SOFTWARE.
|
||||||
# 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):
|
||||||
sed $(MAN_SUBSTS) < $< > $@
|
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
||||||
|
|||||||
@@ -19,15 +19,24 @@ 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 and keyboards.
|
most mice, keyboards, tablets and touchscreens.
|
||||||
|
.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, and may be
|
driver can serve as both a pointer and a keyboard input device. Multiple
|
||||||
used as both the core keyboard and the core pointer. Multiple input devices
|
input devices are supported by multiple instances of this driver, with one
|
||||||
are supported by multiple instances of this driver, with one Load
|
InputDevice section of your __xconfigfile__ for each input device that will
|
||||||
directive for evdev in the Module section of your __xconfigfile__ for each
|
use this driver.
|
||||||
input device that will use this driver.
|
.PP
|
||||||
|
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
|
||||||
@@ -76,13 +85,14 @@ 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: on, until a middle mouse
|
pressing both buttons simultaneously. Default: off. Property: "Evdev Middle
|
||||||
button event is registered. Property: "Evdev Middle Button Emulation".
|
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
|
||||||
@@ -151,10 +161,6 @@ 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
|
||||||
@@ -163,6 +169,11 @@ 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
|
||||||
@@ -225,7 +236,6 @@ value.
|
|||||||
1 16-bit positive value.
|
1 16-bit positive value.
|
||||||
|
|
||||||
.SH AUTHORS
|
.SH AUTHORS
|
||||||
Kristian Høgsberg.
|
Kristian Høgsberg, Peter Hutterer
|
||||||
.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,6 +35,7 @@
|
|||||||
#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>
|
||||||
@@ -42,7 +43,6 @@
|
|||||||
#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,6 +145,8 @@ 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 */
|
||||||
@@ -256,7 +258,7 @@ EvdevDragLockSetProperty(DeviceIntPtr dev, Atom atom, XIPropertyValuePtr val,
|
|||||||
pEvdev->dragLock.meta = meta;
|
pEvdev->dragLock.meta = meta;
|
||||||
memset(pEvdev->dragLock.lock_pair, 0, sizeof(pEvdev->dragLock.lock_pair));
|
memset(pEvdev->dragLock.lock_pair, 0, sizeof(pEvdev->dragLock.lock_pair));
|
||||||
}
|
}
|
||||||
} else
|
} else if ((val->size % 2) == 0)
|
||||||
{
|
{
|
||||||
CARD8* vals = (CARD8*)val->data;
|
CARD8* vals = (CARD8*)val->data;
|
||||||
|
|
||||||
@@ -269,10 +271,11 @@ EvdevDragLockSetProperty(DeviceIntPtr dev, Atom atom, XIPropertyValuePtr val,
|
|||||||
pEvdev->dragLock.meta = 0;
|
pEvdev->dragLock.meta = 0;
|
||||||
memset(pEvdev->dragLock.lock_pair, 0, sizeof(pEvdev->dragLock.lock_pair));
|
memset(pEvdev->dragLock.lock_pair, 0, sizeof(pEvdev->dragLock.lock_pair));
|
||||||
|
|
||||||
for (i = 0; i < val->size && i < EVDEV_MAXBUTTONS; i++)
|
for (i = 0; i < val->size && i < EVDEV_MAXBUTTONS; i += 2)
|
||||||
pEvdev->dragLock.lock_pair[i] = vals[i];
|
pEvdev->dragLock.lock_pair[vals[i] - 1] = vals[i + 1];
|
||||||
}
|
}
|
||||||
}
|
} else
|
||||||
|
return BadMatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Success;
|
return Success;
|
||||||
|
|||||||
37
src/emuMB.c
37
src/emuMB.c
@@ -34,19 +34,14 @@
|
|||||||
#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 */
|
||||||
@@ -231,11 +226,6 @@ 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;
|
||||||
@@ -309,17 +299,10 @@ 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);
|
||||||
}
|
}
|
||||||
@@ -347,16 +330,6 @@ 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,6 +33,7 @@
|
|||||||
#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>
|
||||||
@@ -40,7 +41,6 @@
|
|||||||
#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,6 +100,7 @@ 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)
|
||||||
@@ -118,12 +119,21 @@ 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);
|
||||||
@@ -133,11 +143,11 @@ EvdevWheelEmuFilterMotion(InputInfoPtr pInfo, struct input_event *pEv)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we found REL_X or REL_Y, emulate a mouse wheel.
|
/* If we found REL_X, REL_Y, ABS_X or ABS_Y then emulate a mouse
|
||||||
Reset the inertia of the other axis when a scroll event was sent
|
wheel. Reset the inertia of the other axis when a scroll event
|
||||||
to avoid the buildup of erroneous scroll events if the user
|
was sent to avoid the buildup of erroneous scroll events if the
|
||||||
doesn't move in a perfectly straight line.
|
user doesn't move in a perfectly straight line.
|
||||||
*/
|
*/
|
||||||
if (pAxis)
|
if (pAxis)
|
||||||
{
|
{
|
||||||
if (EvdevWheelEmuInertia(pInfo, pAxis, value))
|
if (EvdevWheelEmuInertia(pInfo, pAxis, value))
|
||||||
@@ -222,13 +232,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);
|
||||||
xfree(msg);
|
free(msg);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
710
src/evdev.c
710
src/evdev.c
File diff suppressed because it is too large
Load Diff
18
src/evdev.h
18
src/evdev.h
@@ -34,11 +34,12 @@
|
|||||||
#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.4 kernels and earlier lack _CNT defines */
|
#ifndef EV_CNT /* linux 2.6.23 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
|
||||||
@@ -57,6 +58,20 @@
|
|||||||
#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
|
||||||
@@ -199,7 +214,6 @@ 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