Commit Graph

96 Commits

Author SHA1 Message Date
bru
c43f5dfdc8 Add support for precision scrolling. 2019-03-24 17:59:19 +00:00
bru
a011f4db8a 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@
2018-06-18 20:07:30 +00:00
guenther
3eafa14cfe If read() returns EIO, then the wsmouse device has gone away and our fd
to it is useless, so detach the xserver driver and close it.
Modeled on similar code in xf86-input-{keyboard,mouse}

reminded by Frank Groeneveld (frank (at) frankgroeneveld.nl)
ok matthieu@ kettenis@
2017-12-31 23:31:41 +00:00
matthieu
fd18c20e72 regen 2016-10-11 22:14:30 +00:00
guenther
8c95c27565 Remove zaurus, zts, and ztsscale references 2016-09-03 14:01:16 +00:00
matthieu
e033e2eda9 Explicitely include <sys/time.h> where needed.
From pkgsrc (Takahiro Kambe) via Thomas Klausner. Thanks
2015-12-25 15:08:28 +00:00
shadchin
d1fc35bb69 Read multiple events at once.
Before:
Both drivers currently do one read(2) per event, but since we use a
"sync" event we have a least two of them for ws(4) but more commonly
3 for ws(4) and 4 for synaptics(4).

most of the code and ok mpi@
2015-08-29 08:48:28 +00:00
matthieu
9b16ccde7b log read errors at verbose level 4 and above.
This prevents filling /var/log/Xorg.0.log when a device gets disconnected.
XXX more work is needed to actually disable it (and make it possible to
automatically re-enable it when it becomes available again).
2015-02-17 08:21:14 +00:00
shadchin
55854c363a a little header cleanup 2013-11-02 13:17:32 +00:00
shadchin
0e58383580 Fix jagged diagonal lines (xenocara part)
Make sure that you have a recent kernel.

ok matthieu@. tested edd@, Henri Kemppainen and Alf Schlichting.
2013-10-30 18:05:34 +00:00
matthieu
1449a85f9c Sum consecutive dx and dy motion events received separartely from
the kernel before sending them up to X. Reduces staircacse effects
on diagonal freehand drawings. Patch from Henri Kemppainen, tested
by edd@. Thanks.
2013-07-20 13:24:50 +00:00
shadchin
238484184f two nits missing in previous commit 2012-07-08 14:22:03 +00:00
shadchin
4777ba761a Cleanup and uniform style. No functional changes. 2012-07-08 13:51:11 +00:00
shadchin
efc79f5918 zap extra brackets 2012-06-12 17:59:01 +00:00
shadchin
6810536bbf fix indent 2012-06-12 17:44:56 +00:00
shadchin
c141be6b55 zap trailing space 2012-06-12 17:19:01 +00:00
shadchin
19315c6e52 Add support ButtonMapping
ok matthieu@
2012-06-12 17:12:50 +00:00
shadchin
90e4158e02 Small cleanup
ok matthieu@
2012-06-12 17:11:23 +00:00
shadchin
2bfb1dd82f Add missing XISetDevicePropertyDeletable and more information about error
ok matthieu@
2012-06-12 17:10:03 +00:00
shadchin
b13ea1a213 Use xf86IDrvMsg in emumb.c instead of ErrorF
ok matthieu@
2012-06-12 17:06:43 +00:00
shadchin
3abd8f3785 Fix some obvious constness-related compile warnings
ok matthieu@
2012-06-12 17:04:43 +00:00
matthieu
50cf571503 add _X_EXPORT attribute to public symbols. 2011-12-29 13:48:05 +00:00
shadchin
86e4fbccae Adding wheel emulation, ported from evdev(4)
ok matthieu@
2011-11-28 23:49:59 +00:00
shadchin
2cba20c2fd regen 2011-11-19 13:22:56 +00:00
shadchin
3917241c88 Replace WS_NOZMAP on WS_NOMAP.
ok matthieu@
2011-11-19 13:12:49 +00:00
shadchin
67a6690ca1 Simplify middle button emulation code.
ok matthieu@
2011-11-19 13:09:16 +00:00
shadchin
d7335b6ea9 Add check emulateMB.timeout >= 0.
ok matthieu@
2011-11-19 13:05:33 +00:00
shadchin
cb94a4132b ws_debug_level used only if defined DEBUG.
ok matthieu@
2011-11-19 12:59:55 +00:00
shadchin
df8922a136 Using macros MODULETEARDOWNPROTO for prototype.
ok matthieu@
2011-11-19 12:46:08 +00:00
shadchin
15c3974226 config: upgrade to util-macros 1.8 for additional man page support
Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS
The value of MAN_SUBST is the same for all X.Org packages.

Use AC_PROG_SED now supplied by XORG_DEFAULT_OPTIONS.
It sets the SED env variable with an appropriate sed program path.

Use Automake $() for variables in Makefile.am

ok matthieu@
2011-11-19 12:42:57 +00:00
shadchin
3734bac4a5 Static atoms don't need to be initialized to 0.
ok matthieu@
2011-11-19 12:36:16 +00:00
shadchin
90da7d925e Sync with code.
ok matthieu@
2011-11-19 12:28:10 +00:00
shadchin
6946fdbaf2 Call wsInitProperty() only for WSMOUSE_TYPE_TPANEL and simplify code.
Also renamed wsInitProperty and wsSetProperty to
wsInitCalibProperty and wsSetCalibProperty respectively.

ok matthieu@
2011-11-09 16:17:44 +00:00
shadchin
2800db42b2 Simplify wsPreInit
ok matthieu@
2011-11-09 16:08:42 +00:00
shadchin
e6f2cf8c55 Ignore option Raw for mices. (was more noise than useful information)
ok matthieu@
2011-11-09 16:07:13 +00:00
shadchin
a86fa301f9 Remove call xf86CollectInputOptions. It is useless if second arg is NULL.
ok matthieu@
2011-11-09 16:04:50 +00:00
shadchin
ebf795425f Mapping scroll events:
on 4 and 5 buttons (vertical scrolling)
on 6 and 7 buttons (horizontal scrolling)

This is do default xf86-input-mouse, xf86-input-evdev.
Also sync manual page.

ok matthieu@
2011-11-08 12:57:44 +00:00
shadchin
25e80ee670 Correct clean bit for scroll buttons plus small optimisation.
ok matthieu@
2011-11-08 12:55:26 +00:00
shadchin
9272c2f84c Process only changed button
ok matthieu@
2011-11-08 12:53:14 +00:00
shadchin
4ad39eb24c Fix memory leak
ok matthieu@
2011-11-08 12:51:32 +00:00
shadchin
35b66ec59f Replace xf86FindOptionValue on xf86SetStrOption.
If option set as "", then xf86FindOptionValue returns "",
and xf86SetStrOption returns NULL.

ok matthieu@
2011-11-07 18:42:32 +00:00
shadchin
7fbf1ea788 Small fix manual page
ok matthieu@
2011-11-07 18:38:12 +00:00
shadchin
c581ee87df Remove code for ABI_XINPUT_VERSION < 12
ok matthieu@
2011-11-07 18:36:53 +00:00
shadchin
3d54603d79 Replace xf86Msg on xf86IDrvMsg.
The latter provides a standardised message format in the form of
    driver name: device name: message

ok matthieu@
2011-11-07 18:33:04 +00:00
shadchin
a8eeddbe72 Remove prototype wsChangeControl, this is missing in last change 2011-11-06 16:20:27 +00:00
shadchin
6d15c8ed7e Some cleanup:
* remove trailing whitespace
* remove odd pInfo->private = priv
* remove wsChangeControl (not used)
* remove useless actions in wsControlProc

ok matthieu@
2011-10-16 17:54:07 +00:00
matthieu
be13f4d35d Unifdef support for xinput ABI up to 10. 2011-07-17 13:08:38 +00:00
matthieu
223f0b15f6 Unifdef support for xinput ABI up to 10. 2011-07-16 17:51:30 +00:00
matthieu
64adaaec20 Mention that this driver also supports ums(4), tweaks and white-space
cleanups.
2011-07-16 17:50:41 +00:00
matthieu
aec351483f fix xf86-input-ws on xserver 1.9 and earlier.
<xorg-server.h> is needed to get the proper Xinput ABI definition from
other headers.
2011-05-08 10:38:13 +00:00