xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Oleksandr Andrushchenko <andr2000@gmail.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: lars.kurth@citrix.com, sstabellini@kernel.org,
	vlad.babchuk@gmail.com, dario.faggioli@citrix.com,
	al1img@gmail.com, andrii.anisov@gmail.com, olekstysh@gmail.com,
	julien.grall@arm.com, xen-devel@lists.xenproject.org,
	joculator@gmail.com
Subject: Re: [RFC] kbdif: add multi-touch support
Date: Tue, 3 Jan 2017 21:45:56 +0200	[thread overview]
Message-ID: <f8a2c39d-79b8-52de-4232-4d824ffccabf@gmail.com> (raw)
In-Reply-To: <586BDF20020000780012CBBC@prv-mh.provo.novell.com>


On 01/03/2017 06:28 PM, Jan Beulich wrote:
>>>> On 03.01.17 at 16:39, <andr2000@gmail.com> wrote:
>> --- a/xen/include/public/io/kbdif.h
>> +++ b/xen/include/public/io/kbdif.h
>> @@ -45,6 +45,19 @@
>>    */
>>   #define XENKBD_TYPE_POS     4
>>   
>> +/*
>> + * Multi-touch event
>> + * Capable backend sets feature-multi-touch in xenstore.
>> + * Frontend requests feature by setting request-multi-touch in xenstore.
>> + * Frontend supports up to XENKBD_MT_NUM_DEV virtual multi-touch input devices,
>> + * configured by the backend in xenstore under mt-%d folder, %d being
>> + * a sequential number of the virtual input device:
>> + *   o num-contacts - number of simultaneous touches supported
>> + *   o width - width of the touch area in pixels
>> + *   o height - height of the touch area in pixels
>> + */
>> +#define XENKBD_TYPE_MTOUCH  5
>> +
>>   struct xenkbd_motion
>>   {
>>       uint8_t type;        /* XENKBD_TYPE_MOTION */
>> @@ -68,6 +81,56 @@ struct xenkbd_position
>>       int32_t rel_z;       /* relative Z motion (wheel) */
>>   };
>>   
>> +/* number of simultaneously supported multi-touch virtual input devices */
>> +#define XENKBD_MT_NUM_DEV   4
> Why is this limit needed? There's no use of it within the other
> interface additions you make.
>
> Jan
Well, the only reason for that was a shy attempt to somewhat simplify
changes to the existing frontend, e.g. handling fixed number of mt input
devices rather than allocating all those dynamically, finding the number
of devices configured at run-time etc.
I will happily remove this limitation though

Oleksandr


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2017-01-03 19:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-03 15:39 [RFC] kbdif: add multi-touch support Oleksandr Andrushchenko
2017-01-03 15:39 ` Oleksandr Andrushchenko
2017-01-03 16:28   ` Jan Beulich
2017-01-03 19:45     ` Oleksandr Andrushchenko [this message]
2017-01-04  1:03   ` Stefano Stabellini
2017-01-04  7:24     ` Oleksandr Andrushchenko
2017-01-04 18:23       ` Stefano Stabellini
2017-01-05  6:54         ` Oleksandr Andrushchenko
2017-01-05 19:19           ` Stefano Stabellini
2017-01-05 20:20             ` Oleksandr Andrushchenko
2017-01-11 20:07         ` Oleksandr Andrushchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f8a2c39d-79b8-52de-4232-4d824ffccabf@gmail.com \
    --to=andr2000@gmail.com \
    --cc=JBeulich@suse.com \
    --cc=al1img@gmail.com \
    --cc=andrii.anisov@gmail.com \
    --cc=dario.faggioli@citrix.com \
    --cc=joculator@gmail.com \
    --cc=julien.grall@arm.com \
    --cc=lars.kurth@citrix.com \
    --cc=olekstysh@gmail.com \
    --cc=sstabellini@kernel.org \
    --cc=vlad.babchuk@gmail.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).