CVS: cvs.openbsd.org: src

2023-08-16 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2023/08/16 14:53:47

Modified files:
sys/dev/pckbc  : pms.c 

Log message:
Identify Synaptics touchpads without multifinger support.

ok miod@



CVS: cvs.openbsd.org: src

2023-07-02 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2023/07/02 15:44:04

Modified files:
sbin/wsconsctl : mouse.c mousecfg.c mousecfg.h 
share/man/man4 : wsmouse.4 
sys/arch/arm64/dev: aplhidev.c 
sys/dev/usb: ubcmtp.c 
sys/dev/wscons : wsconsio.h wstpad.c 

Log message:
Add button mappings for two- and three-finger clicks on clickpads.

Based on a proposal of tobhe@.

ok tobhe@



CVS: cvs.openbsd.org: src

2022-10-16 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2022/10/16 14:17:08

Modified files:
sys/dev/hid: hidmt.c 

Log message:
Improve the clickpad/touchpad detection in hidmt.

If the HID descriptors don't provide a HUD_BUTTON_TYPE property, hidmt
should treat all devices as clickpads if they report a "clickpad button",
or don't report to have both a left and right external button.



CVS: cvs.openbsd.org: src

2022-10-16 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2022/10/16 12:23:44

Modified files:
sys/dev/wscons : wsmouse.c 

Log message:
Fix a bug in the initialization mechanism of wsmouse.

The CONFIGURED flag, which indicates that first-time initialization
has been completed, must be set immediately after the first call to
wstpad_configure.  Otherwise, passing touchpad parameters to the
initialization function has no effect for some of them.



CVS: cvs.openbsd.org: src

2022-06-16 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2022/06/16 14:52:38

Modified files:
sys/dev/hid: hidms.c 

Log message:
Add boundary checks to hidms_setup.

Thanks to Sven M. Hallberg.



CVS: cvs.openbsd.org: src

2022-06-09 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2022/06/09 16:17:18

Modified files:
sys/dev/wscons : wstpad.c 

Log message:
Reorganize the handling of tap inputs.

This change fixes bugs concerning the transition into the hold/drag state
after double taps or two- or three-finger taps.  In addition, it ensures
that button events properly match the logical button state when tap inputs
and button inputs overlap.



CVS: cvs.openbsd.org: src

2021-03-24 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2021/03/24 12:50:55

Modified files:
etc/examples   : wsconsctl.conf 

Log message:
Add mouse.tp.tapping example.

ok kn@



CVS: cvs.openbsd.org: src

2021-03-24 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2021/03/24 12:28:25

Modified files:
sys/dev/wscons : wstpad.c 

Log message:
Improve the tap detection mechanism.

Revision 1.29 of wstpad.c has removed the 'maxdist' checks
for multi-finger taps.  While this change makes tap detection
more reliable, and does not affect inputs intended for pointer
movement, it might interfere with short scroll gestures.
This version reorganizes the filtering code, and reintroduces
a weaker version of those checks for MT touchpads.



CVS: cvs.openbsd.org: src

2021-03-24 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2021/03/24 01:40:37

Modified files:
sys/dev/wscons : wstpad.c 

Log message:
Make tap detection less restrictive for multi-finger taps.

In order to distinguish tap gestures from short movements, the mechanism
checks whether the distance between the first and the last position of a
touch exceeds the 'maxdist' limit.  Some touchpads provide unreliable
coordinates when more than one contact is being made simultaneously, and
in this case the filter may be too strong - and superfluous, because only
one-finger contacts should trigger pointer movement.



CVS: cvs.openbsd.org: src

2021-03-21 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2021/03/21 10:20:49

Modified files:
sys/dev/wscons : wsmouse.c wstpad.c wsmouseinput.h 

Log message:
Include wstpad allocations when cleaning up wsmouse resources.

ok gnezdo@



CVS: cvs.openbsd.org: www

2021-03-03 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:www
Changes by: b...@cvs.openbsd.org2021/03/03 13:36:36

Modified files:
faq: current.html 

Log message:
Mention the wsconsctl update.



CVS: cvs.openbsd.org: src

2021-03-03 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2021/03/03 12:44:37

Modified files:
sbin/wsconsctl : mousecfg.c 
share/man/man4 : wsmouse.4 
sys/dev/wscons : wsconsio.h wstpad.c 

Log message:
Add a configurable button mapping for tap gestures on touchpads.

Thanks to RJ Johnson for this work!

ok mpi@



CVS: cvs.openbsd.org: src

2021-03-02 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2021/03/02 15:35:19

Modified files:
sbin/wsconsctl : mousecfg.c 

Log message:
Read general and touchpad-specific wsmouse settings separately.
Correct the identification of the device type when reading the
touchpad parameters fails.

ok jcs@



CVS: cvs.openbsd.org: src

2020-10-23 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2020/10/23 16:06:27

Modified files:
sys/dev/pckbc  : pms.c 

Log message:
1. Work around a firmware bug of some Elantech-v1 touchpads.

2. Remove obsolete code from the v1-/v2-packet handlers (coordinate
values are ignored if z is 0).



CVS: cvs.openbsd.org: src

2020-06-17 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2020/06/17 17:43:08

Modified files:
sys/dev/usb: ums.c usbdevs usbdevs.h usbdevs_data.h 

Log message:
Fix broken HID descriptors of Elecom trackballs.

The report descriptors specify an invalid button count for models
with 6 or 8 buttons.

Thanks to Sivaram Gowkanapal, who provided the core of this patch.

ok mpi@



CVS: cvs.openbsd.org: src

2020-04-26 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2020/04/26 05:31:07

Modified files:
sys/dev/wscons : wsdisplay.c 

Log message:
Make explicit and enforce that WSCREEN and WSEMUL names are 0-terminated.

CID 1452993 (BUFFER_SIZE_WARNING)
CID 1453314 (BUFFER_SIZE_WARNING)

ok kettenis@



CVS: cvs.openbsd.org: src

2020-04-26 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2020/04/26 05:17:56

Modified files:
sys/dev/wscons : wskbd.c 

Log message:
Remove unused assignments.

CID 1453143

ok kettenis@



CVS: cvs.openbsd.org: src

2020-03-22 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2020/03/22 10:39:51

Modified files:
sys/dev/wscons : wsmouse.c 

Log message:
Mark omissions of break statements as intentional.

CID 1453207 (Missing break in switch)



CVS: cvs.openbsd.org: src

2020-03-18 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2020/03/18 16:38:10

Modified files:
sys/dev/pckbc  : pms.c pmsreg.h 

Log message:
1. Run Synaptics touchpads in plain W-mode.  2. Update the AGM-check.

Enabling extended W-mode is unnecessary as long as pms does not process
the additional packets properly.

Thanks to David Demelier for his reports and tests.

ok anton@ mpi@



CVS: cvs.openbsd.org: src

2019-09-20 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2019/09/20 15:21:47

Modified files:
sys/dev/pckbc  : pms.c pmsreg.h 

Log message:
Extend the identification and validation of elantech-v4 packets to the
"crc-enabled" format.

ok awolk@



CVS: cvs.openbsd.org: src

2019-08-31 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2019/08/31 07:48:45

Modified files:
sys/dev/wscons : wstpad.c 

Log message:
Fix a bug of the tap-detection code.

Do not switch from the DETECT state to IGNORE when the last (active) touch
has been released.  Otherwise, depending on how events are reported and
synchronized, it may happen that the handler does not switch back to DETECT
when necessary.



CVS: cvs.openbsd.org: src

2019-08-19 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2019/08/19 15:42:33

Modified files:
sbin/wsconsctl : mouse.c mousecfg.c mousecfg.h 

Log message:
Add a field for enabling/disabling reverse scrolling.

ok patrick@



CVS: cvs.openbsd.org: src

2019-08-19 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2019/08/19 15:19:38

Modified files:
sys/dev/wscons : wsconsio.h wsmouseinput.h wsmouse.c 

Log message:
Add a configuration option for reverse scrolling.

ok patrick@



CVS: cvs.openbsd.org: src

2019-08-19 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2019/08/19 15:08:26

Modified files:
sys/dev/pckbc  : pms.c 

Log message:
Accept more elantech-v4 models, and apply a test for external buttons.

Thanks to Alexander Cronheim.

ok mpi@



CVS: cvs.openbsd.org: src

2019-03-24 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2019/03/24 14:45:34

Modified files:
sys/dev/wscons : wstpad.c 

Log message:
Fix a precedence problem.



CVS: cvs.openbsd.org: www

2019-03-24 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:www
Changes by: b...@cvs.openbsd.org2019/03/24 12:21:36

Modified files:
faq: current.html 

Log message:
wsmouse and ws updates



CVS: cvs.openbsd.org: src

2019-03-24 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2019/03/24 12:04:02

Modified files:
sys/dev/wscons : wsmouse.c wstpad.c wsmouseinput.h 

Log message:
Switch to precision scrolling in wstpad.



CVS: cvs.openbsd.org: xenocara

2019-03-24 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:xenocara
Changes by: b...@cvs.openbsd.org2019/03/24 11:59:20

Modified files:
driver/xf86-input-ws/src: ws.c ws.h 

Log message:
Add support for precision scrolling.



CVS: cvs.openbsd.org: src

2019-03-24 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2019/03/24 11:55:39

Modified files:
sys/dev/wscons : wsconsio.h 

Log message:
Add new event types for precision scrolling.



CVS: cvs.openbsd.org: src

2018-12-29 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/12/29 14:03:58

Modified files:
sys/dev/wscons : wstpad.c 

Log message:
Cleanup: Initialize the pointers to position data early, and use
them consistently.



CVS: cvs.openbsd.org: src

2018-12-26 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/12/26 04:08:02

Modified files:
sys/dev/wscons : wstpad.c 

Log message:
Use estimates of speed to improve gesture detection.

ok mpi@ (to the concept)



CVS: cvs.openbsd.org: src

2018-12-05 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/12/05 12:49:47

Modified files:
sys/dev/wscons : wstpad.c 

Log message:
Use a time-based method for tracking motion states of touches.

ok mpi@



CVS: cvs.openbsd.org: src

2018-11-10 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/11/10 07:27:51

Modified files:
sys/dev/wscons : wsconsio.h wsmouseinput.h wsmouse.c wstpad.c 

Log message:
Remove the strong hysteresis filter.

It seems that the filter is obsolete, the default method is sufficient.
Simplify and clean up some related code in wsmouse.

ok mpi@



CVS: cvs.openbsd.org: src

2018-11-05 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/11/05 16:38:04

Modified files:
sys/dev/wscons : wstpad.c 

Log message:
Improve the filters for scrolling.

ok mpi@



CVS: cvs.openbsd.org: xenocara

2018-06-18 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:xenocara
Changes by: b...@cvs.openbsd.org2018/06/18 14:07:31

Modified files:
driver/xf86-input-ws/src: emuwheel.c 

Log message:
Improve the wheel emulation logic.  Make the axis filtering symmetrical,
and less restrictive for vertical scrolling.

Thanks to Jake Champlin for help with the issue.

ok matthieu@



CVS: cvs.openbsd.org: src

2018-05-13 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/05/13 08:48:19

Modified files:
sys/dev/pckbc  : pms.c pmsreg.h 

Log message:
Add support for Elantech trackpoints to pms.  Extend the list of
"IC types" that identify Elantech-V4 touchpads.

Thanks to Ryan Lennox for help and testing.

ok mpi@



CVS: cvs.openbsd.org: src

2018-05-07 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/05/07 16:15:36

Modified files:
sbin/wsconsctl : mouse.c mousecfg.c mousecfg.h 

Log message:
Add the logging parameters to mousecfg.c, and make the 'param' field
available for all wsmouse devices.



CVS: cvs.openbsd.org: src

2018-05-07 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/05/07 15:58:42

Modified files:
sys/dev/wscons : wsconsio.h wsmouseinput.h wsmouse.c wstpad.c 

Log message:
Add logging options to wsmouse.  Input and event logging for debug
purposes can be enabled and disabled by WSMOUSEIO_SETPARAMS
requests.



CVS: cvs.openbsd.org: src

2018-02-04 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/02/04 13:29:59

Modified files:
share/man/man4 : wsmouse.4 

Log message:
Document the compat-mode settings.

Thanks to Ingo for his help.

ok schwarze@



CVS: cvs.openbsd.org: src

2018-01-29 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/01/29 14:54:11

Modified files:
sys/dev/pckbc  : pms.c pmsreg.h 

Log message:
pms: minor cleanups in the alps code.

1. Update the ALPS_*_BEZEL values, which don't match the actual limits
accurately. The new values are used by Linux for all models with the
protocols "V1" and "V2".

2. Models with the ID 0x7331 are not supported properly, remove it
from the list.

3. Report to wsmouse that multiple contacts aren't recognized.



CVS: cvs.openbsd.org: src

2018-01-22 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/01/22 15:14:11

Modified files:
sbin/wsconsctl : mouse.c mousecfg.c mousecfg.h 

Log message:
1. Add a field for configuring the size of edge areas on touchpads.
2. Remove code that is obsolete because all touchpad drivers configure
wsmouse for compat mode now.



CVS: cvs.openbsd.org: src

2018-01-13 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/01/13 04:54:01

Modified files:
sys/dev/wscons : wsmouse.c 

Log message:
coordinate again: polishing



CVS: cvs.openbsd.org: src

2018-01-11 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2018/01/11 16:50:49

Modified files:
sys/dev/wscons : wsmouse.c wstpad.c wsmouseinput.h 

Log message:
Improve the handling of coordinate inputs and filters.

Single-touch and multi-touch coordinate inputs are treated more uniformly,
and the hysteresis filters have a more consistent implementation.  If
possible, pointer control will be assigned to touches with coordinate
updates that pass the default hysteresis filter (the function has been
moved to wsmouse.c).  The "strong" variant of hysteresis has been
improved, the new version won't double the threshold when a movement
changes the orientation on an axis.

There is an additional change in wstpad_configure, which ensures that a
zero size disables an edge area even if the coordinate limits are
misconfigured.



CVS: cvs.openbsd.org: src

2017-12-23 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/12/23 03:50:15

Modified files:
sys/dev/wscons : wstpad.c 

Log message:
scrolling: take care of noise.



CVS: cvs.openbsd.org: src

2017-12-22 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/12/22 08:21:04

Modified files:
sys/dev/wscons : wstpad.c 

Log message:
1. Use unfiltered deltas for scrolling.  2. (Re-)Simplify the edge area
setup.



CVS: cvs.openbsd.org: www

2017-12-05 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:www
Changes by: b...@cvs.openbsd.org2017/12/05 14:20:33

Modified files:
faq: current.html 

Log message:
new default setup for touchpads



CVS: cvs.openbsd.org: xenocara

2017-12-05 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:xenocara
Changes by: b...@cvs.openbsd.org2017/12/05 13:56:26

Modified files:
xserver/config : wscons.c 

Log message:
Use ws as default driver for touchpads.

ok matthieu@



CVS: cvs.openbsd.org: xenocara

2017-12-05 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:xenocara
Changes by: b...@cvs.openbsd.org2017/12/05 13:51:11

Modified files:
driver/xf86-input-synaptics/conf: 70-synaptics.conf 

Log message:
Use ws as default driver for touchpads.

ok matthieu@



CVS: cvs.openbsd.org: src

2017-11-26 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/11/26 16:27:27

Modified files:
sys/dev/wscons : wstpad.c 

Log message:
Add various improvements to the default configuration (better default
sizes of edge areas, vertical edge areas as default, and a check for
the WSMOUSE_TYPE that may detect clickpads where software buttons
should be placed at the top edge).



CVS: cvs.openbsd.org: src

2017-11-23 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/11/23 15:59:42

Modified files:
sys/dev/wscons : wsmouseinput.h wsmouse.c wstpad.c 

Log message:
1. Prepare a consistent treatment of edge areas.  2. Add mechanisms
that identify and mask touches resting in the bottom area.



CVS: cvs.openbsd.org: src

2017-10-28 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/10/28 08:44:46

Modified files:
sys/dev/i2c: iatp.c 

Log message:
Add the compat-mode setup for wsmouse.



CVS: cvs.openbsd.org: src

2017-10-28 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/10/28 08:31:29

Modified files:
sys/dev/pckbc  : pms.c 

Log message:
Adapt the Elantech handlers (v1-3) to the new wsmouse infrastructure.

The new versions use wsmouse_configure, and leave compat-mode handling
to wsmouse.

ok stsp



CVS: cvs.openbsd.org: src

2017-10-08 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/10/08 04:13:42

Modified files:
sys/dev/hid: hidmt.c hidmtvar.h 

Log message:
Adapt hidmt to the MT interface of wsmouse, and add the compat-mode setup.

ok mpi@, jcs@



CVS: cvs.openbsd.org: src

2017-08-26 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/08/26 12:34:04

Modified files:
sys/dev/pckbc  : pms.c 

Log message:
bug fix



CVS: cvs.openbsd.org: src

2017-08-25 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/08/25 14:57:35

Modified files:
sys/dev/wscons : wstpad.c 

Log message:
Reduce the delay before scrolling starts.



CVS: cvs.openbsd.org: src

2017-08-25 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/08/25 13:44:21

Modified files:
sys/dev/pckbc  : pms.c pmsreg.h 

Log message:
Query the lower coordinate limits.



CVS: cvs.openbsd.org: src

2017-08-01 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/08/01 17:23:44

Modified files:
sbin/wsconsctl : mouse.c 

Log message:
Handle the flags of mousecfg fields correctly.



CVS: cvs.openbsd.org: src

2017-07-27 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/07/27 14:25:27

Modified files:
sys/dev/wscons : wstpad.c 

Log message:
Use variable edge masks (again).

The properties of edge areas will be more consistent even though
in some cases the driver remains in the dark about the exact
coordinate limits.



CVS: cvs.openbsd.org: src

2017-07-26 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/07/26 14:25:15

Modified files:
sys/dev/wscons : wstpad.c 

Log message:
Do not add plain edge areas as default.

Given how the Synaptics models report min/max coordinates, adding
"small" edge areas per default might consume too much space.



CVS: cvs.openbsd.org: src

2017-07-21 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/07/21 14:38:20

Modified files:
sbin/wsconsctl : Makefile mouse.c util.c wsconsctl.c wsconsctl.h 
Added files:
sbin/wsconsctl : mousecfg.c mousecfg.h 

Log message:
Add fields for wsmouse/touchpad configuration.



CVS: cvs.openbsd.org: src

2017-07-21 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/07/21 14:10:10

Modified files:
sys/dev/pckbc  : pms.c 

Log message:
Show Synaptics Model IDs.



CVS: cvs.openbsd.org: src

2017-07-16 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/07/16 12:30:24

Modified files:
sys/dev/wscons : wsmouse.c 

Log message:
Explain the multi-touch tracking function.



CVS: cvs.openbsd.org: src

2017-07-16 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/07/16 12:00:53

Modified files:
sys/dev/wscons : wstpad.c 

Log message:
Minor changes in the setup.

1. Add middle-button areas to the clickpad defaults.
2. Handle the edge areas more uniformly.
3. Don't disable sw buttons at the bottom edge.



CVS: cvs.openbsd.org: src

2017-06-18 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/06/18 07:34:03

Modified files:
sys/dev/pckbc  : pms.c 

Log message:
pms/alps: configure compat mode



CVS: cvs.openbsd.org: src

2017-06-18 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/06/18 07:21:48

Modified files:
sys/dev/wscons : wsmousevar.h wstpad.c 

Log message:
Remove remnants of old versions.



CVS: cvs.openbsd.org: src

2017-06-06 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/06/06 15:53:07

Modified files:
sys/dev/usb: ubcmtp.c 
sys/dev/pckbc  : pms.c 
sys/dev/wscons : wsmouseinput.h 

Log message:
Set the weak variant of hysteresis as default.



CVS: cvs.openbsd.org: src

2017-06-06 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/06/06 13:47:22

Modified files:
sys/dev/wscons : wsconsio.h wstpad.c 

Log message:
Add support for tap gestures.



CVS: cvs.openbsd.org: src

2017-05-10 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/05/10 13:47:17

Modified files:
sys/dev/wscons : wstpad.c 

Log message:
Adapt the filter parameters to the X/Y ratio.

ok mpi@



CVS: cvs.openbsd.org: src

2017-05-08 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/05/08 14:55:29

Modified files:
sys/dev/pckbc  : pms.c 
sys/dev/usb: ubcmtp.c 
sys/dev/wscons : wsconsio.h wsmouse.c wsmouseinput.h wstpad.c 

Log message:
improved coordinate filters

ok mpi@



CVS: cvs.openbsd.org: src

2017-03-15 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/03/15 15:43:45

Modified files:
sys/dev/usb: ubcmtp.c 

Log message:
Configure and apply the multitouch-tracking functions of wsmouse.

Special thanks to Martina P. for her help.

ok jcs@ jung@



CVS: cvs.openbsd.org: xenocara

2017-03-07 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:xenocara
Changes by: b...@cvs.openbsd.org2017/03/07 12:07:56

Modified files:
driver/xf86-input-synaptics/src: wsconscomm.c 

Log message:
Don't use stale coordinates in the hysteresis filter.

OK mpi@



CVS: cvs.openbsd.org: src

2017-02-27 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/02/27 09:40:10

Modified files:
sys/dev/pckbc  : pms.c 

Log message:
pms/elantech-v4: configure wsmouse for handling compat-mode

ok @matthieu @stsp @mpi



CVS: cvs.openbsd.org: src

2017-02-27 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/02/27 09:21:47

Modified files:
sys/dev/pckbc  : pms.c 

Log message:
pms/synaptics: configure wsmouse for handling compat-mode

ok @matthieu @stsp @mpi



CVS: cvs.openbsd.org: src

2017-02-27 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/02/27 08:59:56

Modified files:
sys/dev/wscons : files.wscons wsconsio.h wsmouse.c 
 wsmouseinput.h wsmousevar.h 
Added files:
sys/dev/wscons : wstpad.c 

Log message:
Handle touchpad input in wsmouse.

The wstpad file contains the core of a touchpad-input driver that
is coupled with wsmouse. It is active in compat-mode if wsmouse has
been configured for it.

ok @matthieu @stsp @mpi



CVS: cvs.openbsd.org: src

2016-10-23 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2016/10/23 16:59:19

Modified files:
sys/dev/pckbc  : pms.c 
sys/dev/wscons : wsconsio.h wsmouse.c wsmouseinput.h 
 wsmousevar.h 

Log message:
Improved parameter handling in wsmouse and new ioctls for reading and
setting parameter values.

ok matthieu@



CVS: cvs.openbsd.org: src

2016-08-18 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2016/08/18 15:12:35

Modified files:
sys/dev/wscons : wsmouse.c wsmouseinput.h 

Log message:
Reset the input state completely when wsmouse is (re-)opened.

ok mpi@



CVS: cvs.openbsd.org: src

2016-07-12 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2016/07/12 16:02:53

Modified files:
sys/dev/wscons : wsmouse.c 

Log message:
Reset the mt state completely in wsmouse_mt_init.

ok kettenis@



CVS: cvs.openbsd.org: src

2016-07-05 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2016/07/05 13:33:14

Modified files:
sys/dev/wscons : wsmouse.c 

Log message:
Improve the tracking functions in wsmouse.

ok mpi@



CVS: cvs.openbsd.org: src

2016-06-06 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2016/06/06 16:32:47

Modified files:
sys/dev/wscons : wsmouse.c wsmousevar.h 

Log message:
Remove wsmouse_input.

ok mpi@



CVS: cvs.openbsd.org: src

2016-06-05 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2016/06/05 14:15:54

Modified files:
sys/arch/zaurus/dev: zts.c 
sys/dev/hil: hilms.c 
sys/dev/usb: uts.c 

Log message:
Use the new input functions of wsmouse in mouse and touchscreen drivers.

ok stsp@ kettenis@



CVS: cvs.openbsd.org: src

2016-06-05 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2016/06/05 14:02:36

Modified files:
sys/arch/i386/isa: lms.c mms.c 
sys/arch/luna88k/dev: lunaws.c 
sys/arch/sgi/hpc: z8530ms.c 
sys/dev/adb: ams.c 
sys/dev/sun: sunms.c 
sys/dev/usb: utpms.c 

Log message:
Use the new input functions of wsmouse in mouse and touchscreen drivers.

ok stsp@ kettenis@



CVS: cvs.openbsd.org: src

2016-05-22 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2016/05/22 16:06:11

Modified files:
sys/dev/hid: hidms.c 
sys/dev/pckbc  : pms.c 

Log message:
Use the new input functions of wsmouse in mouse and touchscreen drivers.

ok kettenis@



CVS: cvs.openbsd.org: xenocara

2016-04-22 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:xenocara
Changes by: b...@cvs.openbsd.org2016/04/22 17:06:53

Modified files:
driver/xf86-input-synaptics/src: wsconscomm.c 

Log message:
Don't stop scrolling when handling TOUCH_RESET events.

To avoid jumps, the original version of the handler clears
the scroll flags. The method works well if a scroll gesture
continues, but it can preclude "coasting". The new version
adjusts the coordinates that determine the speed and direction
of scrolling.

ok shadchin@, mpi@



CVS: cvs.openbsd.org: www

2016-03-30 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:www
Changes by: b...@cvs.openbsd.org2016/03/30 20:06:29

Modified files:
faq: current.html 

Log message:
synaptics update



CVS: cvs.openbsd.org: src

2016-03-30 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2016/03/30 17:34:12

Modified files:
sys/dev/hid: hidmt.c 
sys/dev/pckbc  : pms.c 
sys/dev/usb: ubcmtp.c 
sys/dev/wscons : wsconsio.h wsmouse.c wsmousevar.h 
Added files:
sys/dev/wscons : wsmouseinput.h 

Log message:
Add support for multitouch input to wsmouse.

This change adds new input-processing functions to wsmouse and
adapts the touchpad drivers.

ok mpi@, shadchin@



CVS: cvs.openbsd.org: xenocara

2016-03-30 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:xenocara
Changes by: b...@cvs.openbsd.org2016/03/30 17:33:34

Modified files:
driver/xf86-input-synaptics/src: wsconscomm.c 

Log message:
Handle the TOUCH events from wsmouse.

With the changes for multitouch input, new event types have been
introduced in wsmouse. There are separate types for contact count
and width values, and RESET events for controlling/stopping
pointer motion.

ok mpi@, shadchin@



CVS: cvs.openbsd.org: src

2015-09-05 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2015/09/05 08:02:21

Modified files:
sys/dev/pckbc  : pms.c pmsreg.h 

Log message:
Support Synaptics touchpads without W mode.

Emulate W mode if a Synaptics model doesn't provide it, and check
for the success of the resolution query during setup.

ok shadchin@, mpi@



CVS: cvs.openbsd.org: src

2015-09-05 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2015/09/05 07:52:54

Modified files:
sys/dev/pckbc  : pms.c pmsreg.h 

Log message:
Improve tap-and-drag detection for ALPS touchpads.

The ALPS mechanism for gesture detection can produce long delays between
a packet that signals a tap and the next packet, which either signals
the end of the gesture or the start of a drag-operation. The time spans
can exceed the timeouts used by the generic detection mechanism in the
synaptics driver. Reporting both the touch and the release event when
the second packet has arrived ensures that the tap will be recognized.

ok mpi@ shadchin@