summaryrefslogtreecommitdiff
path: root/driver/xf86-input-ws
AgeCommit message (Collapse)Author
2023-08-12Avoid close(-1). ok miod@Matthieu Herrb
wsClose() is called twice on X server exit, so this test is needed to avoid calling close a 2nd time with -1.
2023-04-27Swap saved x/y touchscreen values if axes are swapped.Anthony J. Bentley
This fixes an issue where moving a finger horizontally or vertically on a rotated touchscreen caused the cursor to jump to position along a diagonal line. ok miod@ kettenis@
2023-04-25Fix error message typos: COORS -> COORDS.Anthony J. Bentley
ok matthieu@
2023-04-25xtsscale is in section 1, not section 8.Anthony J. Bentley
2022-05-27Do not free() an on-stack array.Matthieu Herrb
Reported by Tobias Nygren using gcc10.
2022-05-11Fix typo: ususally -> usually.Anthony J. Bentley
2021-03-28Ignore WSMOUSEIO_GTYPE ioctl failure when checking /dev/wsmouseJoshua Stein
When xf86-input-ws has attached separately to all existing mouse devices already or there are no mice plugged in, xf86-input-ws fails to attach to the wsmouse mux as a default fallback because there is no wsmouse device left in the mux to handle the WSMOUSEIO_GTYPE ioctl. If a USB mouse is later plugged in, there will not be any xf86-input-ws driver loaded listening to /dev/wsmouse for input. ok matthieu
2020-09-13Use C99 designated structure initializers.Matthieu Herrb
No expected code change.
2019-08-08replace obsoleted xf86{,Un}BlockSIGIO() calls by input_{,un}lock()Matthieu Herrb
for xserver 1.20. No functional change.
2019-08-08Adapt Block and Wakeup handlers prototypes to X server 1.20.Matthieu Herrb
No functional change.
2019-03-24Add support for precision scrolling.Ulf Brosziewski
2018-06-18Improve the wheel emulation logic. Make the axis filtering symmetrical,Ulf Brosziewski
and less restrictive for vertical scrolling. Thanks to Jake Champlin for help with the issue. ok matthieu@
2017-12-31If read() returns EIO, then the wsmouse device has gone away and our fdPhilip Guenther
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@
2016-10-11regenMatthieu Herrb
2016-09-03Remove zaurus, zts, and ztsscale referencesPhilip Guenther
2015-12-25Explicitely include <sys/time.h> where needed.Matthieu Herrb
From pkgsrc (Takahiro Kambe) via Thomas Klausner. Thanks
2015-08-29Read multiple events at once.Alexandr Shadchin
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-02-17log read errors at verbose level 4 and above.Matthieu Herrb
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).
2013-11-02a little header cleanupAlexandr Shadchin
2013-10-30Fix jagged diagonal lines (xenocara part)Alexandr Shadchin
Make sure that you have a recent kernel. ok matthieu@. tested edd@, Henri Kemppainen and Alf Schlichting.
2013-07-20Sum consecutive dx and dy motion events received separartely fromMatthieu Herrb
the kernel before sending them up to X. Reduces staircacse effects on diagonal freehand drawings. Patch from Henri Kemppainen, tested by edd@. Thanks.
2012-07-08two nits missing in previous commitAlexandr Shadchin
2012-07-08Cleanup and uniform style. No functional changes.Alexandr Shadchin
2012-06-12zap extra bracketsAlexandr Shadchin
2012-06-12fix indentAlexandr Shadchin
2012-06-12zap trailing spaceAlexandr Shadchin
2012-06-12Add support ButtonMappingAlexandr Shadchin
ok matthieu@
2012-06-12Small cleanupAlexandr Shadchin
ok matthieu@
2012-06-12Add missing XISetDevicePropertyDeletable and more information about errorAlexandr Shadchin
ok matthieu@
2012-06-12Use xf86IDrvMsg in emumb.c instead of ErrorFAlexandr Shadchin
ok matthieu@
2012-06-12Fix some obvious constness-related compile warningsAlexandr Shadchin
ok matthieu@
2011-12-29add _X_EXPORT attribute to public symbols.Matthieu Herrb
2011-11-28Adding wheel emulation, ported from evdev(4)Alexandr Shadchin
ok matthieu@
2011-11-19regenAlexandr Shadchin
2011-11-19Replace WS_NOZMAP on WS_NOMAP.Alexandr Shadchin
ok matthieu@
2011-11-19Simplify middle button emulation code.Alexandr Shadchin
ok matthieu@
2011-11-19Add check emulateMB.timeout >= 0.Alexandr Shadchin
ok matthieu@
2011-11-19ws_debug_level used only if defined DEBUG.Alexandr Shadchin
ok matthieu@
2011-11-19Using macros MODULETEARDOWNPROTO for prototype.Alexandr Shadchin
ok matthieu@
2011-11-19config: upgrade to util-macros 1.8 for additional man page supportAlexandr Shadchin
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-19Static atoms don't need to be initialized to 0.Alexandr Shadchin
ok matthieu@
2011-11-19Sync with code.Alexandr Shadchin
ok matthieu@
2011-11-09Call wsInitProperty() only for WSMOUSE_TYPE_TPANEL and simplify code.Alexandr Shadchin
Also renamed wsInitProperty and wsSetProperty to wsInitCalibProperty and wsSetCalibProperty respectively. ok matthieu@
2011-11-09Simplify wsPreInitAlexandr Shadchin
ok matthieu@
2011-11-09Ignore option Raw for mices. (was more noise than useful information)Alexandr Shadchin
ok matthieu@
2011-11-09Remove call xf86CollectInputOptions. It is useless if second arg is NULL.Alexandr Shadchin
ok matthieu@
2011-11-08Mapping scroll events:Alexandr Shadchin
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-08Correct clean bit for scroll buttons plus small optimisation.Alexandr Shadchin
ok matthieu@
2011-11-08Process only changed buttonAlexandr Shadchin
ok matthieu@
2011-11-08Fix memory leakAlexandr Shadchin
ok matthieu@