Bring features of xinput list-props to libinput-list-devices
William Gathoye
william at gathoye.be
Sun Jul 17 21:49:27 UTC 2016
Hello everyone,
I have just made a simple patch to libinput-list-devices.
The latter brings back a feature available in xinput when used in
combination with Xorg drivers instead of libinput.
- The maximum number of finger detected
- Reports if 3 fingers are detected
Just a few question though. In
xinput list-props "CyPS/2 Cypress Trackpad"
[...]
Coordinate Transformation Matrix (140): 1.000000, 0.000000, 0.000000,
0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
[...]
libinput Scroll Methods Available (286): 1, 1, 0
what are the Coordinate Transformation Matrix about?
I assume "libinput Scroll Methods Available" bits are respectively for
two fingers, three fingers and four fingers scrolling detection right?
Also as I added the constant LIBINPUT_CONFIG_SCROLL_3FG, I had to adapt
the code which was using LIBINPUT_CONFIG_SCROLL_*2*FG. Also I don't know
if four, fingers, needs to be implemented.
I dont know if my changes are correct. Mr Hutterer, please correct me if
I'm wrong, this is a great exercise for me, as I'm always willing to learn.
Thanks for your answers.
Regards,
--
William Gathoye
<william at gathoye.be>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implement_three_fingers_and_number_of_fingers_detection.patch
Type: text/x-patch
Size: 6242 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20160717/1c8b35b6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20160717/1c8b35b6/attachment.sig>
More information about the wayland-devel
mailing list