matthieu
4c4398b2e9
Avoid close(-1). ok miod@
...
wsClose() is called twice on X server exit, so this test is needed to
avoid calling close a 2nd time with -1.
2023-08-12 16:48:44 +00:00
bentley
e447743965
Swap saved x/y touchscreen values if axes are swapped.
...
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-27 12:25:56 +00:00
bentley
3e7961fbf9
Fix error message typos: COORS -> COORDS.
...
ok matthieu@
2023-04-25 20:18:48 +00:00
bentley
becd7a8418
xtsscale is in section 1, not section 8.
2023-04-25 16:07:13 +00:00
matthieu
8aaca22283
Do not free() an on-stack array.
...
Reported by Tobias Nygren using gcc10.
2022-05-27 16:34:34 +00:00
bentley
57ae4c770d
Fix typo: ususally -> usually.
2022-05-11 07:48:58 +00:00
jcs
2cc95a6942
Ignore WSMOUSEIO_GTYPE ioctl failure when checking /dev/wsmouse
...
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
2021-03-28 15:57:45 +00:00
matthieu
fd0b27a538
Use C99 designated structure initializers.
...
No expected code change.
2020-09-13 10:26:31 +00:00
matthieu
3a6045e486
replace obsoleted xf86{,Un}BlockSIGIO() calls by input_{,un}lock()
...
for xserver 1.20. No functional change.
2019-08-08 12:28:09 +00:00
matthieu
2aeb2bf61b
Adapt Block and Wakeup handlers prototypes to X server 1.20.
...
No functional change.
2019-08-08 12:23:34 +00:00
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