xen-troops / displ_be

GNU General Public License v2.0
2 stars 8 forks source link

Abs input #98

Closed santucco closed 4 years ago

santucco commented 4 years ago

feature-abs-pointer from a backend should meet with request-abs-pointer from a frontend to start conversation. Also width and height of pointer device can be specified and applied to backend, at least for abs pointer devices

andr2000 commented 4 years ago

Could you please describe the use-case for this?

santucco commented 4 years ago

My frontend can work with both rel and abs pointer devices. So 'request-abs-pointer' is specified to 1. According to the current logic the backend will produce XENKBD_TYPE_POS events (depends on real pointer device). I would like to have a possibility to control this behaviour by advertising of abs capability via 'feature-abs-pointer'. If request-abs-pointer meets with feature-abs-pointer, the backend produces abs events, otherwise doesn't produce. Potentially it can be useful for devices produce both types of events simultaneously.

santucco commented 4 years ago

Also two other parameters are applied, width and height. I made it in an attempt to limit my touchpad so that it produces coordinates limited by these parameters. Actually, it ignores these parameters and produced very big coordinates anyway.

andr2000 commented 4 years ago

@santucco could you please rebase?