33 Commits

Author SHA1 Message Date
Peter Osterlund
214bbbd518 Added a "GuestMouseOff" parameter to disable the pass
through device. (It's not entirely uncommon that the pointing stick is
broken and generates bogus pointer movements.)
From Moritz Maass <maass@informatik.tu-muenchen.de>.
2006-04-09 04:02:19 +02:00
Peter Osterlund
695a442786 Moved the QueryHardware function to the protocol specific
files.
2006-04-09 04:02:00 +02:00
Peter Osterlund
174d85a0f7 Implemented a proper state machine for tap and drag
processing. This fixes several problems:
* Double tap and drag now works. (Problem reported by Andrew Pimlott
  <andrew@pimlott.net>.)
* Locked drags are handled correctly, even for button 2 and 3
  tap-and-drag operations.
* The [LR][TB]CornerButton and TapButton[123] parameters now work also
  for button values > 3.
* The old code was too hard to understand.
2006-04-09 04:01:58 +02:00
Peter Osterlund
f56d238d28 Some changes to make supporting FreeBSD easier. From Arne
Schwabe <arne@rfc2549.org>, with some editing by me.
2006-04-09 04:01:56 +02:00
Peter Osterlund
362c0722dd Made it possible to disable vertical and horizontal
scrolling by setting the corresponding parameter to zero. From Matthias
Ihmig <m.ihmig@gmx.net>.
2006-04-09 04:01:52 +02:00
Peter Osterlund
2f36b06fdc Made it possible to use "edge motion" also when not
dragging. From Matthias Ihmig <m.ihmig@gmx.net>.
2006-04-09 04:01:51 +02:00
Peter Osterlund
661c08dca8 Added pressure dependent edge motion speed. From Matthias
Ihmig <m.ihmig@gmx.net>.
2006-04-09 04:01:51 +02:00
Peter Osterlund
684a20f32f The is_equal() function in synclient.c forgot to check
multibuttons.
2006-04-09 04:01:50 +02:00
Peter Osterlund
8307eaaced Added support for middle mouse buttons. (Some ALPS touchpads
have them.)
2006-04-09 04:01:49 +02:00
Peter Osterlund
173ce7d90b Added copyright headers to synclient.c and syndaemon.c. 2006-04-09 04:01:44 +02:00
Peter Osterlund
995df72ef0 Added support for circular scrolling. From Alexei Gilchrist
<alexei@physics.uq.edu.au>, with some cosmetic changes by me.
2006-04-09 04:01:42 +02:00
Peter Osterlund
04b62c8b16 Include time in the "synclient -m" output. 2006-04-09 04:01:39 +02:00
Peter Osterlund
14ae273377 Made tap processing configurable. Patch from Justin Quek
<quek@crhc.uiuc.edu>, cleaned up somewhat by me.
2006-04-09 04:01:33 +02:00
Peter Osterlund
e6d92b0e43 Added pass through support. From David Kennedy and Fred
Hucht.
2006-04-09 04:01:30 +02:00
Peter Osterlund
f764fdbf20 Added an fflush() call after the printf in the monitor loop
in synclient.c. This makes "synclient -m" behave better when the output
is piped to some other program.
(From Anders Kaseorg <anders@kaseorg.com>.)
2006-04-09 04:01:25 +02:00
Peter Osterlund
64cb1f3f14 Report all eight multi buttons in the synclient program. 2006-04-09 04:01:17 +02:00
Peter Osterlund
ad34245639 Use case insensitive matching when setting parameters. 2006-04-09 04:01:17 +02:00
Peter Osterlund
215c8256a5 Implemented "locked drags", after a suggestion from
"Karl Kashofer" <karl.kashofer@gmx.at>.
2006-04-09 04:01:16 +02:00
Peter Osterlund
a37a1239a7 Added support for the new 2.6 kernel events ABS_TOOL_WIDTH,
BTN_TOOL_FINGER, BTN_TOOL_DOUBLETAP and BTN_TOOL_TRIPLETAP. Note that
this swaps the direction of the Y axis internally to match X and the
linux input subsystem. Because of this, the TopEdge and BottomEdge
parameters must be modified in the config file. There is some backwards
compatibility code for old 2.5/2.6 kernels that will probably be
deleted later.
2006-04-09 04:01:12 +02:00
Peter Osterlund
0f0cee77f6 Made it possible to disable the touchpad at runtime. (Patch
from "Jörg Bösner" <ich@joerg-boesner.de>.)
2006-04-09 04:01:10 +02:00
Peter Osterlund
5ab0290008 Changed tab size from 4 to the standard value 8. Reindented
code so that it still looks sane.
2006-04-09 04:01:08 +02:00
Peter Osterlund
b5ae101d5d Update from Hartwig Felger.
* Added "multi-buttons" to the FEATURES list.
* Updated NEWS file with data from the web page.
* More robust parsing of the Handlers= line when doing auto detection
  for 2.6 kernels. ("Handlers=event2 js0" should now work.)
* Updated synclient program to explain that it can't query hardware
  details when using a 2.6 kernel.
2006-04-09 04:01:04 +02:00
Peter Osterlund
799ea3f9cc Rewrote timer handling so that the driver no longer depends
on packets arriving 1s after the last state change. (The kernel driver
only reports to user space when something changes.) Use wall clock time
instead of packet counting for time computations. This change also
means that configurable times are now specified in milliseconds instead
of units of 1/80s.
2006-04-09 04:00:58 +02:00
Peter Osterlund
c2a2cd3692 Made the params[] array in synclient.c static. 2006-04-09 04:00:56 +02:00
Peter Osterlund
436ecd0605 Fixed incorrect usage text in synclient. 2006-04-09 04:00:55 +02:00
Peter Osterlund
7ac888545b Updated the synclient program to make it possible to read
and write the variables in the shared memory area.
2006-04-09 04:00:55 +02:00
Peter Osterlund
cd19219486 Fix use of uninitialized memory in synclient.c. 2006-04-09 04:00:54 +02:00
Peter Osterlund
92b799709a Remove shared memory segment when the X server terminates.
Made synclient behave better when the memory segment is not accessible
or has the wrong size.
2006-04-09 04:00:54 +02:00
Peter Osterlund
826b2136b2 Build improvements.
* Build synclient by default.
* Made it possible to build synclient even if an X source tree is not
  available.
* Added Makefile dependencies so that things get recompiled when a
  header file is changed.
* synclient.c now includes synaptics.h instead of duplicating the
  shared memory segment definitions.
2006-04-09 04:00:53 +02:00
Peter Osterlund
e2eddc53ce Fixed compiler warning in synclient.c. 2006-04-09 04:00:50 +02:00
Peter Osterlund
5a5fd8052a * Added z, w, left, right, up and down information to the shared memory
area. Updated synclient to report the new information.
* Improved synclient to only report when something changes.
2006-04-09 04:00:50 +02:00
Peter Osterlund
8098d88080 Added comments to let emacs know about the non-standard tab
width.
2006-04-09 04:00:49 +02:00
Peter Osterlund
0d8042d8b6 Added source code for the synaptics touchpad XFree86
driver.
2006-04-09 04:00:49 +02:00